Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit c7d716b

Browse files
committed
tests: improved country tests
1 parent 66dfe69 commit c7d716b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tests/CountryTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static function provideRuleFailureConditionData(): \Generator
3030
$exception = CountryException::class;
3131
$message = '/The (.*) value is not a valid country, (.*) given\./';
3232

33-
yield 'default' => [new Country(), 'PRT', $exception, $message];
33+
yield 'default' => [new Country(), 'prt', $exception, $message];
3434
yield 'alpha2' => [new Country(code: 'alpha-2'), 'prt', $exception, $message];
3535
yield 'alpha3' => [new Country(code: 'alpha-3'), 'pt', $exception, $message];
3636
}
@@ -39,9 +39,7 @@ public static function provideRuleSuccessConditionData(): \Generator
3939
{
4040
yield 'default' => [new Country(), 'pt'];
4141
yield 'alpha2' => [new Country(code: 'alpha-2'), 'pt'];
42-
yield 'alpha2 lowercase' => [new Country(code: 'alpha-2'), 'pt'];
4342
yield 'alpha3' => [new Country(code: 'alpha-3'), 'prt'];
44-
yield 'alpha3 lowercase' => [new Country(code: 'alpha-3'), 'prt'];
4543
}
4644

4745
public static function provideRuleMessageOptionData(): \Generator

0 commit comments

Comments
 (0)