Moving setExpectedException
This commit is contained in:
@ -61,11 +61,12 @@ class RegistryTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testIsRegistered()
|
||||
{
|
||||
$this->setExpectedException('PHPUnit_Framework_Error');
|
||||
$this->assertFalse(Registry::isRegistered(43));
|
||||
|
||||
$this->_registry->set(3, 'three');
|
||||
$this->assertTrue(Registry::isRegistered(3));
|
||||
|
||||
$this->setExpectedException('PHPUnit_Framework_Error');
|
||||
|
||||
$this->assertFalse(Registry::isRegistered(null));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user