Beispiel #1
0
 /**
  * @group ZF-8177
  */
 public function testRegisterHelperShouldRegisterHelperWithView()
 {
     require_once __DIR__ . '/_stubs/HelperDir1/Stub1.php';
     $view = new View();
     $helper = new \Foo\View\Helper\Stub1();
     $view->registerHelper($helper, 'stub1');
     $this->assertEquals($view->getHelper('stub1'), $helper);
     $this->assertEquals($view->stub1(), 'foo');
 }