replacement @expectedException to setExpectedException

This commit is contained in:
Vyacheslav Agafonov
2011-12-01 12:03:22 +04:00
parent 4b95befdfe
commit dfa661e2e8

View File

@ -58,10 +58,10 @@ class RegistryTest extends PHPUnit_Framework_TestCase
/**
* @TODO: Registry::isRegistered - check input for null
* @expectedException PHPUnit_Framework_Error
*/
public function testIsRegistered()
{
$this->setExpectedException('PHPUnit_Framework_Error');
$this->assertFalse(Registry::isRegistered(43));
$this->_registry->set(3, 'three');