|
|
@ -13,6 +13,7 @@ |
|
|
|
require_once dirname(__FILE__) . '/../../validator/iValidator.php'; |
|
|
|
require_once dirname(__FILE__) . '/../../validator/Validator.php'; |
|
|
|
require_once dirname(__FILE__) . '/../../validator/RegexValidator.php'; |
|
|
|
require_once dirname(__FILE__) . '/../../exception/GeneralException.php'; |
|
|
|
|
|
|
|
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. |
|
|
|
*/ |
|
|
|
public function testNullMessage() |
|
|
@ -66,7 +67,7 @@ class RegexValidatorTest extends PHPUnit_Framework_TestCase |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @expectedException Exception |
|
|
|
* @expectedException GeneralException |
|
|
|
* @expectedExceptionMessage regex |
|
|
|
*/ |
|
|
|
public function testRegexReturnsFalse() |
|
|
|