Permalink
Browse files

added checks for example IBANs for newly added countries

git-svn-id: http://svn.php.net/repository/pear/packages/Validate/trunk@307382 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 2abd15b commit b709734b7716ddd4741267764daaf4caff47f5a1 Hartmut Holzgraefe committed Jan 11, 2011
Showing with 14 additions and 2 deletions.
  1. +14 −2 tests/validate_Finance.phpt
View
16 tests/validate_Finance.phpt
@@ -18,12 +18,13 @@ $ibans = array( 'CH10002300A1023502601', // OK
'PL12100500000123456789', // NOK
// valid IBANs from standard-documents found at www.ecbs.org (all OK)
'AD1200012030200359100100',
+ 'AE070331234567890123456',
+ 'AL47212110090000000235698741',
'AT611904300234573201',
'BA391290079401028494',
'BE68539007547034',
'BG80BNBG96611020345678',
'CH9300762011623852957',
- 'CS73260005601001611379',
'CY17002001280000001200527600',
'CZ6508000000192000145399',
'DE89370400440532013000',
@@ -33,6 +34,7 @@ $ibans = array( 'CH10002300A1023502601', // OK
'FR1420041010050500013M02606',
'FI2112345600000785',
'GB29NWBK60161331926819',
+ 'GE29NB0000000101904917',
'GI75NWBK000000007099453',
'GR1601101250000000012300695',
'HR1210010051863000160',
@@ -41,13 +43,16 @@ $ibans = array( 'CH10002300A1023502601', // OK
'IL620108000000099999999',
'IS140159260076545510730339',
'IT60X0542811101000000123456',
+ 'KW81CBKU0000000000001234560101',
+ 'LB62099900000001001901229114',
'LI21088100002324013AA',
'LT121000011101001000',
'LU280019400644750000',
'LV80BANK0000435195001',
'MC1112739000700011111000h79',
'ME25505000012345678951',
'MK07250120000058984',
+ 'MR1300020001010000123456753',
'MT84MALT011000012345MTLCAST001S',
'MU17BOMM0101101030300200000MUR',
'NL91ABNA0417164300',
@@ -56,6 +61,7 @@ $ibans = array( 'CH10002300A1023502601', // OK
'PT50000201231234567890154',
'RO49AAAA1B31007593840000',
'RS35260005601001611379',
+ 'SA0380000000608010167519',
// 'SE1212312345678901234561', // mentioned in the documents from www.ecbs.org
// but does not validate correctly (checksum)
// needs to be:
@@ -100,12 +106,13 @@ DE6070051755000000722: NO
DE10002300A1023502601: NO
PL12100500000123456789: NO
AD1200012030200359100100: YES
+AE070331234567890123456: YES
+AL47212110090000000235698741: YES
AT611904300234573201: YES
BA391290079401028494: YES
BE68539007547034: YES
BG80BNBG96611020345678: YES
CH9300762011623852957: YES
-CS73260005601001611379: YES
CY17002001280000001200527600: YES
CZ6508000000192000145399: YES
DE89370400440532013000: YES
@@ -115,6 +122,7 @@ ES9121000418450200051332: YES
FR1420041010050500013M02606: YES
FI2112345600000785: YES
GB29NWBK60161331926819: YES
+GE29NB0000000101904917: YES
GI75NWBK000000007099453: YES
GR1601101250000000012300695: YES
HR1210010051863000160: YES
@@ -123,13 +131,16 @@ IE29AIBK93115212345678: YES
IL620108000000099999999: YES
IS140159260076545510730339: YES
IT60X0542811101000000123456: YES
+KW81CBKU0000000000001234560101: YES
+LB62099900000001001901229114: YES
LI21088100002324013AA: YES
LT121000011101001000: YES
LU280019400644750000: YES
LV80BANK0000435195001: YES
MC1112739000700011111000h79: YES
ME25505000012345678951: YES
MK07250120000058984: YES
+MR1300020001010000123456753: YES
MT84MALT011000012345MTLCAST001S: YES
MU17BOMM0101101030300200000MUR: YES
NL91ABNA0417164300: YES
@@ -138,6 +149,7 @@ PL61109010140000071219812874: YES
PT50000201231234567890154: YES
RO49AAAA1B31007593840000: YES
RS35260005601001611379: YES
+SA0380000000608010167519: YES
SE9412312345678901234561: YES
SI56191000000123438: YES
SK3112000000198742637541: YES

0 comments on commit b709734

Please sign in to comment.