From 2391d92e706f033fadb7f95b15bc4b6339c39904 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Tue, 4 Jul 2023 21:39:05 +0300 Subject: [PATCH 1/3] Removed unused test method --- tests/Pest.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/Pest.php b/tests/Pest.php index b2735aa..f8096db 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -29,8 +29,6 @@ use DragonCode\CardNumber\Formatters\Formatter; use DragonCode\CardNumber\Laravel\Validation\Rules\CardNumberRule; -expect()->extend('toBeOne', fn () => $this->toBe(1)); - /* |-------------------------------------------------------------------------- | Functions From 2d7005489c8fa601b32bba14a5b88d10783c3d9b Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Tue, 4 Jul 2023 21:40:13 +0300 Subject: [PATCH 2/3] Removed doc-block --- tests/Pest.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tests/Pest.php b/tests/Pest.php index f8096db..f8b82af 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -11,17 +11,6 @@ | */ -/* -|-------------------------------------------------------------------------- -| 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; From b7bb3f7546aa552c1f72eda9d31c453e8d86b0bd Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Wed, 13 Mar 2024 00:37:04 +0300 Subject: [PATCH 3/3] Added Laravel 11 support --- .github/workflows/tests.yml | 2 +- composer.json | 4 ++-- tests/Unit/Generator/Factories/CustomerFactoryTest.php | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c7f7bff..00618c9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 }} diff --git a/composer.json b/composer.json index 0adc9e3..daae52f 100644 --- a/composer.json +++ b/composer.json @@ -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" diff --git a/tests/Unit/Generator/Factories/CustomerFactoryTest.php b/tests/Unit/Generator/Factories/CustomerFactoryTest.php index e998fed..5c9bd18 100644 --- a/tests/Unit/Generator/Factories/CustomerFactoryTest.php +++ b/tests/Unit/Generator/Factories/CustomerFactoryTest.php @@ -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); });