Skip to content

Commit

Permalink
Validate_IR tests updated. The include path has been updated.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/Validate/trunk@309404 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
hemmat committed Mar 18, 2011
1 parent 6dfa1c0 commit 95dc7e9
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 7 deletions.
6 changes: 5 additions & 1 deletion tests/validate_IR_alphaNumeric.phpt
Expand Up @@ -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";

Expand Down
6 changes: 5 additions & 1 deletion tests/validate_IR_creditCard.phpt
Expand Up @@ -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";

Expand Down
6 changes: 5 additions & 1 deletion tests/validate_IR_mobileNumber.phpt
Expand Up @@ -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";

Expand Down
6 changes: 5 additions & 1 deletion tests/validate_IR_numeric.phpt
Expand Up @@ -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";

Expand Down
6 changes: 5 additions & 1 deletion tests/validate_IR_phoneNumber.phpt
Expand Up @@ -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";

Expand Down
6 changes: 5 additions & 1 deletion tests/validate_IR_postalCode.phpt
Expand Up @@ -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";

Expand Down
6 changes: 5 additions & 1 deletion tests/validate_IR_ssn.phpt
Expand Up @@ -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";

Expand Down

0 comments on commit 95dc7e9

Please sign in to comment.