|
|
@ -24,12 +24,9 @@ class EqualValidatorTest extends PHPUnit_Framework_TestCase |
|
|
|
$this->assertTrue($validator->isValid('token')); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @expectedException InitializationException |
|
|
|
* @expectedExceptionMessage Token not defined |
|
|
|
*/ |
|
|
|
public function testNullToken() |
|
|
|
{ |
|
|
|
$this->setExpectedException('InitializationException','Token not defined'); |
|
|
|
$validator = new EqualValidator(null); |
|
|
|
$validator->isValid('not token'); |
|
|
|
} |
|
|
|