@@ -45,21 +45,24 @@ public function testPostCodesThrowsExceptionIfCountryDoesNotExist()
45
45
/**
46
46
* @dataProvider getCanadaInvalidPostCodes
47
47
*/
48
- public function testInvalidCanadaZipCode ($ countryId , $ invalidPostCode ) {
48
+ public function testInvalidCanadaZipCode ($ countryId , $ invalidPostCode )
49
+ {
49
50
$ this ->assertFalse ($ this ->validator ->validate ($ invalidPostCode , $ countryId ));
50
51
}
51
52
52
53
/**
53
54
* @dataProvider getCanadaValidPostCodes
54
55
*/
55
- public function testValidCanadaZipCode ($ countryId , $ validPostCode ) {
56
+ public function testValidCanadaZipCode ($ countryId , $ validPostCode )
57
+ {
56
58
$ this ->assertTrue ($ this ->validator ->validate ($ validPostCode , $ countryId ));
57
59
}
58
60
59
61
/**
60
62
* @return array
61
63
*/
62
- public function getCanadaInvalidPostCodes () {
64
+ public function getCanadaInvalidPostCodes ()
65
+ {
63
66
return [
64
67
['countryId ' => 'CA ' , 'postcode ' => '12345 ' ],
65
68
['countryId ' => 'CA ' , 'postcode ' => 'A1B2C3D ' ],
@@ -71,7 +74,8 @@ public function getCanadaInvalidPostCodes() {
71
74
/**
72
75
* @return array
73
76
*/
74
- public function getCanadaValidPostCodes () {
77
+ public function getCanadaValidPostCodes ()
78
+ {
75
79
return [
76
80
['countryId ' => 'CA ' , 'postcode ' => 'A1B2C3 ' ],
77
81
['countryId ' => 'CA ' , 'postcode ' => 'A1B 2C3 ' ],
0 commit comments