Moving setExpectedException
This commit is contained in:
@ -136,9 +136,8 @@ class PHPViewTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
public function testErrorTemplate()
|
||||
{
|
||||
$this->setExpectedException('GeneralException', 'Template');
|
||||
$view = new PHPView(array('path' => 'error_path/'));
|
||||
|
||||
$this->setExpectedException('GeneralException', 'Template');
|
||||
$result = $view->fetch('test');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user