view = $this->getView(); $this->helper = new Zend_Dojo_View_Helper_AccordionContainer(); $this->helper->setView($this->view); } /** * Tears down the fixture, for example, close a network connection. * This method is called after a test is executed. * * @return void */ public function tearDown() { } public function getView() { require_once 'Zend/View.php'; $view = new Zend_View(); $view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper'); return $view; } public function getContainer() { $html = ''; for ($i = 1; $i < 6; ++$i) { $id = 'pane' . $i; $title = 'Pane ' . $i; $content = 'This is the content of pane ' . $i; $html .= $this->view->accordionPane($id, $content, array('title' => $title)); } return $this->helper->accordionContainer('container', $html, array(), array('style' => 'height: 200px; width: 100px;')); } public function testShouldAllowDeclarativeDijitCreation() { $html = $this->getContainer(); $this->assertRegexp('/