@@ -31,17 +31,17 @@ public static function provideRuleFailureConditionData(): \Generator
3131 $ message = '/The "(.*)" value is not a valid country code, "(.*)" given./ ' ;
3232
3333 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 ];
3636 }
3737
3838 public static function provideRuleSuccessConditionData (): \Generator
3939 {
4040 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 ' ];
4545 }
4646
4747 public static function provideRuleMessageOptionData (): \Generator
@@ -51,7 +51,7 @@ public static function provideRuleMessageOptionData(): \Generator
5151 message: 'The "{{ name }}" value "{{ value }}" is not a valid "{{ code }}" country code. '
5252 ),
5353 '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. '
5555 ];
5656 }
5757}
0 commit comments