diff --git a/tests/validator/EqualValidatorTest.php b/tests/validator/EqualValidatorTest.php index 1d31c49..2aa158c 100644 --- a/tests/validator/EqualValidatorTest.php +++ b/tests/validator/EqualValidatorTest.php @@ -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'); }