Browse Source

replacement @expectedException to setExpectedException

master
Vyacheslav Agafonov 13 years ago
parent
commit
9943b6afcf
  1. 5
      tests/validator/EqualValidatorTest.php

5
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');
}

Loading…
Cancel
Save