From 9943b6afcfba93acc47332f9ff8fad44dfc3bc42 Mon Sep 17 00:00:00 2001 From: Vyacheslav Agafonov Date: Thu, 1 Dec 2011 12:17:35 +0400 Subject: [PATCH] replacement @expectedException to setExpectedException --- tests/validator/EqualValidatorTest.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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'); }