|
@ -13,6 +13,7 @@ |
|
|
require_once dirname(__FILE__) . '/../../validator/iValidator.php'; |
|
|
require_once dirname(__FILE__) . '/../../validator/iValidator.php'; |
|
|
require_once dirname(__FILE__) . '/../../validator/Validator.php'; |
|
|
require_once dirname(__FILE__) . '/../../validator/Validator.php'; |
|
|
require_once dirname(__FILE__) . '/../../validator/RegexValidator.php'; |
|
|
require_once dirname(__FILE__) . '/../../validator/RegexValidator.php'; |
|
|
|
|
|
require_once dirname(__FILE__) . '/../../exception/GeneralException.php'; |
|
|
|
|
|
|
|
|
class RegexValidatorTest extends PHPUnit_Framework_TestCase |
|
|
class RegexValidatorTest extends PHPUnit_Framework_TestCase |
|
|
{ |
|
|
{ |
|
@ -45,7 +46,7 @@ class RegexValidatorTest extends PHPUnit_Framework_TestCase |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @expectedException Exception |
|
|
|
|
|
|
|
|
* @expectedException GeneralException |
|
|
* @expectedExceptionMessage Message template "regex_not_match" unknown. |
|
|
* @expectedExceptionMessage Message template "regex_not_match" unknown. |
|
|
*/ |
|
|
*/ |
|
|
public function testNullMessage() |
|
|
public function testNullMessage() |
|
@ -66,7 +67,7 @@ class RegexValidatorTest extends PHPUnit_Framework_TestCase |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @expectedException Exception |
|
|
|
|
|
|
|
|
* @expectedException GeneralException |
|
|
* @expectedExceptionMessage regex |
|
|
* @expectedExceptionMessage regex |
|
|
*/ |
|
|
*/ |
|
|
public function testRegexReturnsFalse() |
|
|
public function testRegexReturnsFalse() |
|
|