replacement @expectedException to setExpectedException
This commit is contained in:
@ -28,19 +28,19 @@ class GetViewHelperTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
/**
|
||||
* @TODO: GetViewHelper: initialize GetViewHelper::$get with empty array()
|
||||
* @expectedException PHPUnit_Framework_Error
|
||||
*/
|
||||
public function testGetWithNull()
|
||||
{
|
||||
$this->setExpectedException('PHPUnit_Framework_Error');
|
||||
$this->helper->get(null);
|
||||
}
|
||||
|
||||
/**
|
||||
* @TODO: GetViewHelper: check $_GET not null
|
||||
* @expectedException PHPUnit_Framework_Error
|
||||
*/
|
||||
public function testGetEmptyGET()
|
||||
{
|
||||
$this->setExpectedException('PHPUnit_Framework_Error');
|
||||
$result = $this->helper->get('param');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user