Skip to content
Browse files

Validate_IR tests updated. The include path has been updated.

git-svn-id: http://svn.php.net/repository/pear/packages/Validate/trunk@309404 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 6dfa1c0 commit 95dc7e9c2e522b2d767fd0df768008665aab9e62 @hemmat hemmat committed
View
6 tests/validate_IR_alphaNumeric.phpt
@@ -4,7 +4,11 @@ alphaNumeric.phpt: Unit tests for
<?php
// Validate test script
$noYes = array('NO', 'YES');
-require 'Validate/IR.php';
+if (is_file(dirname(__FILE__) . '/../Validate/IR.php')) {
+ require_once dirname(__FILE__) . '/../Validate/IR.php';
+} else {
+ require_once 'Validate/IR.php';
+}
echo "Test alphaNumeric\n";
View
6 tests/validate_IR_creditCard.phpt
@@ -4,7 +4,11 @@ creditCard.phpt: Unit tests for
<?php
// Validate test script
$noYes = array('NO', 'YES');
-require 'Validate/IR.php';
+if (is_file(dirname(__FILE__) . '/../Validate/IR.php')) {
+ require_once dirname(__FILE__) . '/../Validate/IR.php';
+} else {
+ require_once 'Validate/IR.php';
+}
echo "Test creditCard\n";
View
6 tests/validate_IR_mobileNumber.phpt
@@ -4,7 +4,11 @@ mobileNumber.phpt: Unit tests for
<?php
// Validate test script
$noYes = array('NO', 'YES');
-require 'Validate/IR.php';
+if (is_file(dirname(__FILE__) . '/../Validate/IR.php')) {
+ require_once dirname(__FILE__) . '/../Validate/IR.php';
+} else {
+ require_once 'Validate/IR.php';
+}
echo "Test mobileNumber\n";
View
6 tests/validate_IR_numeric.phpt
@@ -4,7 +4,11 @@ numeric.phpt: Unit tests for
<?php
// Validate test script
$noYes = array('NO', 'YES');
-require 'Validate/IR.php';
+if (is_file(dirname(__FILE__) . '/../Validate/IR.php')) {
+ require_once dirname(__FILE__) . '/../Validate/IR.php';
+} else {
+ require_once 'Validate/IR.php';
+}
echo "Test numeric\n";
View
6 tests/validate_IR_phoneNumber.phpt
@@ -4,7 +4,11 @@ mobileNumber.phpt: Unit tests for
<?php
// Validate test script
$noYes = array('NO', 'YES');
-require 'Validate/IR.php';
+if (is_file(dirname(__FILE__) . '/../Validate/IR.php')) {
+ require_once dirname(__FILE__) . '/../Validate/IR.php';
+} else {
+ require_once 'Validate/IR.php';
+}
echo "Test phoneNumber\n";
View
6 tests/validate_IR_postalCode.phpt
@@ -4,7 +4,11 @@ postalCode.phpt: Unit tests for
<?php
// Validate test script
$noYes = array('NO', 'YES');
-require 'Validate/IR.php';
+if (is_file(dirname(__FILE__) . '/../Validate/IR.php')) {
+ require_once dirname(__FILE__) . '/../Validate/IR.php';
+} else {
+ require_once 'Validate/IR.php';
+}
echo "Test postalCode\n";
View
6 tests/validate_IR_ssn.phpt
@@ -4,7 +4,11 @@ ssn.phpt: Unit tests for
<?php
// Validate test script
$noYes = array('NO', 'YES');
-require 'Validate/IR.php';
+if (is_file(dirname(__FILE__) . '/../Validate/IR.php')) {
+ require_once dirname(__FILE__) . '/../Validate/IR.php';
+} else {
+ require_once 'Validate/IR.php';
+}
echo "Test ssn\n";

0 comments on commit 95dc7e9

Please sign in to comment.
Something went wrong with that request. Please try again.