예제 #1
0
 public function testHelperEntryPointWithContainerStringParam()
 {
     $pm = new \Zend\View\HelperPluginManager();
     $pm->setServiceLocator($this->serviceManager);
     $this->_helper->setServiceLocator($pm);
     $returned = $this->_helper->__invoke('nav1');
     $this->assertEquals($this->_helper, $returned);
     $this->assertEquals($this->_nav1, $returned->getContainer());
 }
예제 #2
0
 public function testHelperEntryPointWithContainerParam()
 {
     $returned = $this->_helper->__invoke($this->_nav2);
     $this->assertEquals($this->_helper, $returned);
     $this->assertEquals($this->_nav2, $returned->getContainer());
 }