cvs: pear /Validate package_Finance.xml /Validate/Validate/Finance IBAN.php /Validate/tests validate_Finance.phpt

From: Date: Fri, 09 Jun 2006 16:04:29 +0000
Subject: cvs: pear /Validate package_Finance.xml /Validate/Validate/Finance IBAN.php /Validate/tests validate_Finance.phpt
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-40597@lists.php.net to get a copy of this message
neufeind Fri Jun 9 16:04:29 2006 UTC Modified files: /pear/Validate package_Finance.xml /pear/Validate/Validate/Finance IBAN.php /pear/Validate/tests validate_Finance.phpt Log: adding IBAN for Bulgaria; fixing tests; preparing for release http://cvs.php.net/viewcvs.cgi/pear/Validate/package_Finance.xml?r1=1.13&r2=1.14&diff_format=u Index: pear/Validate/package_Finance.xml diff -u pear/Validate/package_Finance.xml:1.13 pear/Validate/package_Finance.xml:1.14 --- pear/Validate/package_Finance.xml:1.13 Mon May 1 17:41:23 2006 +++ pear/Validate/package_Finance.xml Fri Jun 9 16:04:29 2006 @@ -16,13 +16,12 @@ </maintainer> </maintainers> <release> - <version>0.5.2</version> + <version>0.5.3</version> <state>alpha</state> - <date>2006-05-01</date> + <date>2006-06-06</date> <notes> -- added missing countries (which were added later to IBAN-system) -- added more IBANs for checks -- several corrections (typos, ...) +- added IBAN-check for Bulgaria +- extended and corrected tests </notes> <filelist> <dir name="/"> @@ -44,28 +43,34 @@ </deps> </release> <changelog> - <release> - <version>0.5.1</version> - <state>alpha</state> - <date>2005-11-04</date> - <notes> + <release> + <version>0.5.2</version> + <state>alpha</state> + <date>2006-05-01</date> + <notes> +- added missing countries (which were added later to IBAN-system) +- added more IBANs for checks +- several corrections (typos, ...) + </notes> + </release> + <release> + <version>0.5.1</version> + <state>alpha</state> + <date>2005-11-04</date> + <notes> - Switch to the new BSD License (see http://www.opensource.org/licenses/bsd-license.php) - </notes> - <deps> - <dep type="php" rel="ge" version="4.2.0" /> - <dep type="pkg" rel="ge" version="0.5.0">Validate</dep> - </deps> - </release> - <release> - <version>0.5.0</version> - <state>alpha</state> - <date>2005-05-20</date> - <notes> + </notes> + </release> + <release> + <version>0.5.0</version> + <state>alpha</state> + <date>2005-05-20</date> + <notes> - Split from Validate into independent package - removed apiVersion function from IBAN - make it depends on Validate >= 0.5.0 - </notes> + </notes> </release> </changelog> </package> http://cvs.php.net/viewcvs.cgi/pear/Validate/Validate/Finance/IBAN.php?r1=1.17&r2=1.18&diff_format=u Index: pear/Validate/Validate/Finance/IBAN.php diff -u pear/Validate/Validate/Finance/IBAN.php:1.17 pear/Validate/Validate/Finance/IBAN.php:1.18 --- pear/Validate/Validate/Finance/IBAN.php:1.17 Sat Jan 28 11:36:16 2006 +++ pear/Validate/Validate/Finance/IBAN.php Fri Jun 9 16:04:29 2006 @@ -22,7 +22,7 @@ * @author Stefan Neufeind <pear.neufeind@speedpartner.de> * @copyright 2005 The PHP Group * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: IBAN.php,v 1.17 2006/01/28 11:36:16 neufeind Exp $ + * @version CVS: $Id: IBAN.php,v 1.18 2006/06/09 16:04:29 neufeind Exp $ * @link http://pear.php.net/package/Validate_Finance_IBAN */ @@ -84,6 +84,7 @@ 'AT' => 'Austria', 'BA' => 'Bosnia and Herzegovina', 'BE' => 'Belgium', + 'BG' => 'Bulgaria', 'CH' => 'Swiss', 'CS' => 'Serbia and Montenegro', 'CY' => 'Cyprus', @@ -138,6 +139,7 @@ 'AT' => 20, 'BA' => 20, 'BE' => 16, + 'BG' => 22, 'CH' => 21, 'CS' => 22, 'CY' => 28, @@ -192,6 +194,7 @@ 'AT' => array('start' => 4, 'length' => 5), 'BA' => array('start' => 4, 'length' => 6), // first 3 chars bankcode, last 3 chars branch 'BE' => array('start' => 4, 'length' => 3), + 'BG' => array('start' => 4, 'length' => 8), 'CH' => array('start' => 4, 'length' => 5), 'CS' => array('start' => 4, 'length' => 3), 'CY' => array('start' => 4, 'length' => 8), // first 3 chars bankcode, last 5 chars branch @@ -246,6 +249,7 @@ 'AT' => array('start' => 9, 'length' => 11), 'BA' => array('start' => 10, 'length' => 8), // followed by 2 chars (checksum) 'BE' => array('start' => 7, 'length' => 7), // followed by 2 chars (checksum) + 'BG' => array('start' => 12, 'length' => 10), 'CH' => array('start' => 9, 'length' => 12), 'CS' => array('start' => 7, 'length' => 13), // followed by 2 chars (checksum) 'CY' => array('start' => 12, 'length' => 16), @@ -300,6 +304,7 @@ 'AT' => '/^AT[0-9]{2}[0-9]{5}[0-9]{11}$/', 'BA' => '/^BA[0-9]{2}[0-9]{6}[0-9]{10}$/', 'BE' => '/^BE[0-9]{2}[0-9]{3}[0-9]{9}$/', + 'BG' => '/^BG[0-9]{2}[A-Z]{4}[0-9]{4}[0-9]{2}[A-Z0-9]{8}$/', 'CH' => '/^CH[0-9]{2}[0-9]{5}[A-Z0-9]{12}$/', 'CS' => '/^CS[0-9]{2}[0-9]{3}[0-9]{15}$/', 'CY' => '/^CY[0-9]{2}[0-9]{8}[A-Z0-9]{16}$/', http://cvs.php.net/viewcvs.cgi/pear/Validate/tests/validate_Finance.phpt?r1=1.2&r2=1.3&diff_format=u Index: pear/Validate/tests/validate_Finance.phpt diff -u pear/Validate/tests/validate_Finance.phpt:1.2 pear/Validate/tests/validate_Finance.phpt:1.3 --- pear/Validate/tests/validate_Finance.phpt:1.2 Sat Jan 28 11:36:16 2006 +++ pear/Validate/tests/validate_Finance.phpt Fri Jun 9 16:04:29 2006 @@ -2,7 +2,7 @@ validate_Finance.phpt: Unit tests for 'Validate/Finance.php' --FILE-- <?php -// $Id: validate_Finance.phpt,v 1.2 2006/01/28 11:36:16 neufeind Exp $ +// $Id: validate_Finance.phpt,v 1.3 2006/06/09 16:04:29 neufeind Exp $ // Validate test script $noYes = array('NO', 'YES'); @@ -21,6 +21,7 @@ 'AT611904300234573201', 'BA391290079401028494', 'BE68539007547034', + 'BG80BNBG96611020345678', 'CH9300762011623852957', 'CS73260005601001611379', 'CY17002001280000001200527600', @@ -92,15 +93,11 @@ DE6070051755000000722: NO DE10002300A1023502601: NO PL12100500000123456789: NO -CH10002300A1023502601: YES -DE60700517550000007229: YES -DE6070051755000000722: NO -DE10002300A1023502601: NO -PL12100500000123456789: NO AD1200012030200359100100: YES AT611904300234573201: YES BA391290079401028494: YES BE68539007547034: YES +BG80BNBG96611020345678: YES CH9300762011623852957: YES CS73260005601001611379: YES CY17002001280000001200527600: YES

« previous php.pear.cvs (#40597) next »