Пример #1
0
 /**
  * @group ZF-5174
  */
 public function testPartialLoopPartialCounterResets()
 {
     $data = array(array('message' => 'foo'), array('message' => 'bar'), array('message' => 'baz'), array('message' => 'bat'));
     $view = new View();
     $view->resolver()->addPath($this->basePath . '/application/views/scripts');
     $this->helper->setView($view);
     $this->helper->__invoke('partialLoopCouter.phtml', $data);
     $this->assertEquals(4, $this->helper->getPartialCounter());
     $this->helper->__invoke('partialLoopCouter.phtml', $data);
     $this->assertEquals(4, $this->helper->getPartialCounter());
 }