Ejemplo n.º 1
0
 /**
  * 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());
     }
 }
Ejemplo n.º 2
0
    /**
     * 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());
        }
    }