public function testGetRequestedControllerNameWithRewritePathInfo() { $this->_model = $this->_model = $this->getModel(); $path = 'one/two/'; $this->_model->setPathInfo($path); $this->_model->rewritePathInfo($path . '/last'); $this->assertEquals('two', $this->_model->getRequestedControllerName()); }
public function testGetRequestedControllerNameWithRewritePathInfo() { $this->_model = new Request($this->_routerListMock, $this->_infoProcessorMock); $path = 'one/two/'; $this->_model->setPathInfo($path); $this->_model->rewritePathInfo($path . '/last'); $this->assertEquals('two', $this->_model->getRequestedControllerName()); }