public function testInitViewWillNotRegisterSameViewPathTwice() { $this->request->setModuleName('foo')->setControllerName('index'); $controller = new Foo_IndexController($this->request, $this->response, array()); $this->helper->setActionController($controller); $this->helper->initView(); $moduleDir = dirname($this->front->getControllerDirectory('foo')); $this->helper->initView($moduleDir . '/views', 'Foo', array('encoding' => 'ISO-8858-1')); $this->_checkDefaults(); }