@@ -31,17 +31,17 @@ public static function provideRuleFailureConditionData(): \Generator
31
31
$ message = '/The "(.*)" value is not a valid country code, "(.*)" given./ ' ;
32
32
33
33
yield 'default ' => [new Country (), 'PRT ' , $ exception , $ message ];
34
- yield 'alpha2 ' => [new Country (code: 'alpha2 ' ), 'PRT ' , $ exception , $ message ];
35
- yield 'alpha3 ' => [new Country (code: 'alpha3 ' ), 'PT ' , $ exception , $ message ];
34
+ yield 'alpha2 ' => [new Country (code: 'alpha-2 ' ), 'PRT ' , $ exception , $ message ];
35
+ yield 'alpha3 ' => [new Country (code: 'alpha-3 ' ), 'PT ' , $ exception , $ message ];
36
36
}
37
37
38
38
public static function provideRuleSuccessConditionData (): \Generator
39
39
{
40
40
yield 'default ' => [new Country (), 'PT ' ];
41
- yield 'alpha2 ' => [new Country (code: 'alpha2 ' ), 'PT ' ];
42
- yield 'alpha2 lowercase ' => [new Country (code: 'alpha2 ' ), 'pt ' ];
43
- yield 'alpha3 ' => [new Country (code: 'alpha3 ' ), 'PRT ' ];
44
- yield 'alpha3 lowercase ' => [new Country (code: 'alpha3 ' ), 'prt ' ];
41
+ yield 'alpha2 ' => [new Country (code: 'alpha-2 ' ), 'PT ' ];
42
+ yield 'alpha2 lowercase ' => [new Country (code: 'alpha-2 ' ), 'pt ' ];
43
+ yield 'alpha3 ' => [new Country (code: 'alpha-3 ' ), 'PRT ' ];
44
+ yield 'alpha3 lowercase ' => [new Country (code: 'alpha-3 ' ), 'prt ' ];
45
45
}
46
46
47
47
public static function provideRuleMessageOptionData (): \Generator
@@ -51,7 +51,7 @@ public static function provideRuleMessageOptionData(): \Generator
51
51
message: 'The "{{ name }}" value "{{ value }}" is not a valid "{{ code }}" country code. '
52
52
),
53
53
'invalid ' ,
54
- 'The "test" value "invalid" is not a valid "alpha2 " country code. '
54
+ 'The "test" value "invalid" is not a valid "alpha-2 " country code. '
55
55
];
56
56
}
57
57
}
0 commit comments