respect-validation/tests/unit/Rules
Henrique Moody 5a067faec7
Update "PostalCode" list
Updated the whole list according to the last version found on
geonames.org.

The script that I executed to generate the list is:

curl -L http://download.geonames.org/export/dump/countryInfo.txt |
  sed 's,\t,\;,g' |
  sort -u |
  cut -d ';' -f 1,15 |
  sed -E "/^#/d; /^[A-Z]{2}\;$/d; s,([A-Z]{2})\;(.+),'\1' => '/\2/'\,,g"

After generating the list I few changes had to be made since some of the
postal codes in the list were manually updated because they were not
correct.

This change was made because James Macon reported that "110231" was
not recognized as a valid Colombian postal code.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-08-29 22:30:50 +02:00
..
Locale Merge branch '1.0' into 1.1 2018-01-02 22:47:22 +01:00
AbstractCompositeTest.php Increase coverage of tests for AbstractComposite 2015-11-04 15:34:48 -02:00
AbstractCtypeRuleTest.php Create AbstractCtypeRule test 2015-11-04 15:34:49 -02:00
AbstractFilterRuleTest.php Create AbstractFilterRule test 2015-11-04 15:34:48 -02:00
AbstractRegexRuleTest.php Fix some coding standards with php-cs-fixer 2016-03-04 21:42:27 -03:00
AbstractRelatedTest.php Merge branch '1.0' into 1.1 2016-09-17 21:30:00 +02:00
AbstractRuleTest.php Complete tests for "AbstractRule" class 2015-10-18 16:22:43 -02:00
AbstractSearcherTest.php Create AbstractSearcher test 2015-11-04 15:34:48 -02:00
AbstractWrapperTest.php Merge branch '0.9' into 1.0 2016-02-26 12:21:26 -03:00
AgeTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
AllOfTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
AlnumTest.php Make clear that "Alnum" rule accepts whitespaces 2018-07-01 14:27:41 +02:00
AlphaTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
AlwaysInvalidTest.php Increase code coverage of rules 2015-10-19 14:17:47 -02:00
AlwaysValidTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
ArrayTypeTest.php Create "ArrayType" rule 2015-10-18 18:01:11 -02:00
ArrayValTest.php Refactor "ArrayVal" rule and add integration tests 2015-10-18 18:50:07 -02:00
AttributeTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
BaseTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
BetweenTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
BoolTypeTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
BoolValTest.php Create "BoolVal" rule 2015-10-21 01:35:05 -03:00
BsnTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
CallableTypeTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
CallbackTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
CallTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
CharsetTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
CnhTest.php Replace CNH validation algorithm 2016-09-18 13:25:18 +02:00
CnpjTest.php Fix "Cnpj" rule 2017-01-25 17:41:21 +01:00
CntrlTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
ConsonantTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
ContainsTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
CountableTest.php Small coding standards and docs improvements 2015-10-24 01:32:07 -02:00
CountryCodeTest.php Small coding standards and docs improvements 2015-10-24 01:32:07 -02:00
CpfTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
CreditCardTest.php Allow the define brands for credit card validation 2016-04-06 16:42:49 -03:00
CurrencyCodeTest.php Small coding standards and docs improvements 2015-10-24 01:32:07 -02:00
DateTest.php Fix wrong behavior of "Date" rule 2018-08-29 21:46:53 +02:00
DigitTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
DirectoryTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
DomainTest.php Change conditions for Domain validation 2018-01-02 22:24:43 +01:00
EachTest.php Improvements on Each rule and test classes. 2015-10-28 14:50:53 -02:00
EmailTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
EndsWithTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
EqualsTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
EvenTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
ExecutableTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
ExistsTest.php Fix some coding standards with php-cs-fixer 2016-03-04 21:42:27 -03:00
ExtensionTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
FactorTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
FalseValTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
FibonacciTest.php Create "Fibonacci" rule 2016-02-13 14:02:21 -02:00
FileTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
FilterVarTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
FiniteTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
FloatTypeTest.php Small coding standards and docs improvements 2015-10-24 01:32:07 -02:00
FloatValTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
GraphTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
HexRgbColorTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
IdenticalTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
ImageTest.php Change file mode of "Image" rule 2016-09-19 09:32:42 +02:00
ImeiTest.php Create "Imei" rule 2015-10-23 07:53:59 -02:00
InfiniteTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
InstanceTest.php Make all rules mandatory 2015-10-07 01:00:39 -03:00
InTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
IntTypeTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
IntValTest.php fix IntVal() leading zero behavior 2018-08-01 16:06:54 +03:00
IpTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
IterableTypeTest.php Rename "Iterable" to "IterableType" 2016-08-03 10:43:33 +02:00
JsonTest.php Improvements on JSON rule 2015-10-19 11:57:42 -02:00
KeyNestedTest.php Always check the type then executing KeyNested 2016-09-12 18:06:10 +02:00
KeySetTest.php Fixes 'KeySet' rule when input is not array type 2016-05-05 13:01:04 +02:00
KeyTest.php Implements numeric Key/KeyNested Addressing 2015-10-22 10:35:58 -02:00
KeyValueTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
LanguageCodeTest.php Create "LanguageCode" rule 2015-10-26 23:12:21 -03:00
LeapDateTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
LeapYearTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
LengthTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
LowercaseTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
MacAddressTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
MaxTest.php Fix casting error in AbstractInterval classes 2018-07-28 05:01:58 +02:00
MimetypeTest.php Skip MimetypeTest when in HHVM 2017-10-16 10:16:47 +02:00
MininumAgeTest.php Throw an exception when age is not an integer 2016-04-23 21:43:19 -03:00
MinTest.php Fix casting error in AbstractInterval classes 2018-07-28 05:01:58 +02:00
MultipleTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
NegativeTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
NfeAccessKeyTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
NoneOfTest.php Add @covers and @group rule on rule tests 2015-08-16 15:00:05 -03:00
NotBlankTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
NotEmptyTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
NoTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
NotOptionalTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
NotTest.php Define names for the child of Not rule 2016-02-13 13:48:10 -02:00
NoWhitespaceTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
NullTypeTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
NumericTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
ObjectTypeTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
OddTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
OneOfTest.php Remove all rules shortcuts 2015-10-14 13:06:36 -03:00
OptionalTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
PerfectSquareTest.php Merge branch '0.9' into 1.0 2015-11-06 12:25:14 -02:00
PeselTest.php Fix Pesel validator when first char is zero 2016-07-01 16:22:12 +02:00
PhoneTest.php Improve "Phone" rule 2017-10-17 09:51:09 +02:00
PhpLabelTest.php Create "PhpLabel" rule 2016-03-04 21:48:25 -03:00
PositiveTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
PostalCodeTest.php Update "PostalCode" list 2018-08-29 22:30:50 +02:00
PrimeNumberTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
PrntTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
PunctTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
ReadableTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
RegexTest.php Prevent "Regex" to process non-string inputs 2016-10-29 15:21:14 +02:00
ResourceTypeTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
RomanTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
ScalarValTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
SfTest.php Improvements and fixes on exceptions 2015-10-22 03:01:41 -02:00
SizeTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
SlugTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
SpaceTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
StartsWithTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
StringTypeTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
SubdivisionCodeTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
SymbolicLinkTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
TldTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
TrueValTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
TypeTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
UploadedTest.php Add @covers and @group rule on rule tests 2015-08-16 15:00:05 -03:00
UppercaseTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
UrlTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
VersionTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
VideoUrlTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
VowelTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
WhenTest.php Increase code coverage of rules 2015-10-19 14:17:47 -02:00
WritableTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
XdigitTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
YesTest.php Use short array syntax 2015-10-17 22:56:32 -03:00
ZendTest.php Use short array syntax 2015-10-17 22:56:32 -03:00