Moving setExpectedException
This commit is contained in:
@ -26,8 +26,8 @@ class EqualValidatorTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
public function testNullToken()
|
||||
{
|
||||
$this->setExpectedException('InitializationException','Token not defined');
|
||||
$validator = new EqualValidator(null);
|
||||
$this->setExpectedException('InitializationException','Token not defined');
|
||||
$validator->isValid('not token');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user