cvs: pear /Validate/tests Validate_NZ.phpt
| From: | Byron Adams | Date: | Fri, 18 Aug 2006 14:16:13 +0000 |
| Subject: | cvs: pear /Validate/tests Validate_NZ.phpt | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-41747@lists.php.net to get a copy of this message | ||
badams Fri Aug 18 14:16:13 2006 UTC
Modified files:
/pear/Validate/tests Validate_NZ.phpt
Log:
Updated expected results
http://cvs.php.net/viewvc.cgi/pear/Validate/tests/Validate_NZ.phpt?r1=1.6&r2=1.7&diff_format=u
Index: pear/Validate/tests/Validate_NZ.phpt
diff -u pear/Validate/tests/Validate_NZ.phpt:1.6 pear/Validate/tests/Validate_NZ.phpt:1.7
--- pear/Validate/tests/Validate_NZ.phpt:1.6 Fri Aug 11 07:06:14 2006
+++ pear/Validate/tests/Validate_NZ.phpt Fri Aug 18 14:16:13 2006
@@ -1,4 +1,4 @@
---TEST--
+<!----TEST--
Validate_NZ.phpt: Unit tests for
--FILE--
<?php
@@ -7,7 +7,7 @@
require 'Validate/NZ.php';
-echo "Test Validate_NZ\n";
+echo " Test Validate_NZ\n";
echo "****************\n";
$postalCodes = array(
@@ -131,7 +131,7 @@
"83-366-3215",
"987 784 215",);
-$CarReg = array("AE12Y3", //Ok
+$Carreg = array("AE12Y3", //Ok
"000000", //NOk
"NY3Z14", //Ok
"ABCDEF", //NOk
@@ -157,13 +157,15 @@
echo "{$bankAccount}: ".$noYes[Validate_NZ::bankCode($bankAccount)]."\n";
}
+
+
echo "----Test IRD Numbers (SSN)----\n";
foreach ($IrdNumbers as $ird) {
echo "{$ird}: ".$noYes[Validate_NZ::ssn($ird)]."\n";
}
echo "----Test Vehicle License plates ----\n";
-foreach ($CarReg as $car) {
+foreach ($Carreg as $Car) {
echo "{$Car}: ".$noYes[Validate_NZ::carReg($Car)]."\n";
}
?>
@@ -253,4 +255,5 @@
071-321-321: NO
97 654 456: NO
83-366-3215: NO
-987 784 215: NO
\ No newline at end of file
+987 784 215: NO
+-->
\ No newline at end of file