mirror of
https://github.com/Respect/Validation.git
synced 2024-06-28 02:00:06 +02:00
Merge branch '0.8' into 0.9
This commit is contained in:
commit
d63cae970b
|
@ -122,7 +122,7 @@ class PostalCode extends Regex
|
|||
"PG" => "/^(\d{3})$/",
|
||||
"PH" => "/^(\d{4})$/",
|
||||
"PK" => "/^(\d{5})$/",
|
||||
"PL" => "/^(\d{5})$/",
|
||||
"PL" => "/^(\d{2}-\d{3})$/",
|
||||
"PM" => "/^(97500)$/",
|
||||
"PR" => "/^(\d{9})$/",
|
||||
"PT" => "/^(\d{7})$/",
|
||||
|
|
|
@ -78,6 +78,7 @@ class PostalCodeTest extends \PHPUnit_Framework_TestCase
|
|||
array('GB', 'PR1 9LY'),
|
||||
array('US', '02179'),
|
||||
array('YE', ''),
|
||||
array('PL', '99-300'),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -101,6 +102,7 @@ class PostalCodeTest extends \PHPUnit_Framework_TestCase
|
|||
array('GB', 'PR19LY'),
|
||||
array('US', '021 79'),
|
||||
array('YE', '02179'),
|
||||
array('PL', '99300'),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue