/** * Tests that calling a nonexistant helper file throws the expected exception */ public function testLoadHelperNonexistantFile() { $view = new Zend_View(); try { $view->nonexistantHelper(); // @todo fail if no exception? } catch (Zend_Exception $e) { $this->assertContains('not found', $e->getMessage()); } }
/** * Tests that calling a nonexistant helper file throws the expected exception */ public function testLoadHelperNonexistantFile() { $view = new Zend_View(); try { $view->nonexistantHelper(); // @todo: fail if no exception? } catch (Zend_View_Exception $e) { $this->assertRegexp('/helper [\'a-z]+ not found in path/i', $e->getMessage()); } }