Skip to content

Commit

Permalink
Merge pull request #17 from TheDragonCode/1.x
Browse files Browse the repository at this point in the history
1.x
  • Loading branch information
andrey-helldar authored Mar 12, 2024
2 parents 695ee67 + b7bb3f7 commit 1cbcf51
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [ "8.1", "8.2" ]
php: [ "8.1", "8.2", "8.3" ]

name: PHP ${{ matrix.php }}

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
"archtechx/enums": "^0.3.2"
},
"require-dev": {
"illuminate/contracts": "^10.14",
"illuminate/contracts": "^10.14 || ^11.0",
"pestphp/pest": "^2.8",
"symfony/var-dumper": "^6.3"
"symfony/var-dumper": "^6.3 || ^7.0"
},
"suggest": {
"dragon-code/translation-set": "Translation of validation rules into 78 localizations for Laravel Framework"
Expand Down
13 changes: 0 additions & 13 deletions tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,13 @@
|
*/

/*
|--------------------------------------------------------------------------
| Expectations
|--------------------------------------------------------------------------
|
| When you're writing tests, you often need to check that values meet certain conditions. The
| "expect()" function gives you access to a set of "expectations" methods that you can use
| to assert different things. Of course, you may extend the Expectation API at any time.
|
*/

use DragonCode\CardNumber\CardNumber;
use DragonCode\CardNumber\Enums\CardType;
use DragonCode\CardNumber\Factories\Factory;
use DragonCode\CardNumber\Formatters\DefaultFormatter;
use DragonCode\CardNumber\Formatters\Formatter;
use DragonCode\CardNumber\Laravel\Validation\Rules\CardNumberRule;

expect()->extend('toBeOne', fn () => $this->toBe(1));

/*
|--------------------------------------------------------------------------
| Functions
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/Generator/Factories/CustomerFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

$year = date('y');

generatedEquals($factory1, $year . '0-4001-2348', $formatter);
generatedEquals($factory2, $year . '0-3012-3451', $formatter);
generatedEquals($factory3, $year . '0-1123-4566', $formatter);
generatedEquals($factory1, $year . '0-4001-2346', $formatter);
generatedEquals($factory2, $year . '0-3012-3459', $formatter);
generatedEquals($factory3, $year . '0-1123-4564', $formatter);
});

0 comments on commit 1cbcf51

Please sign in to comment.