コード例 #1
0
ファイル: HttpTest.php プロジェクト: heiglandreas/zf2
 public function testSetGetControllerName()
 {
     $this->_request->setControllerName('foo');
     $this->assertEquals('foo', $this->_request->getControllerName());
     $this->_request->setControllerName('bar');
     $this->assertEquals('bar', $this->_request->getControllerName());
 }
コード例 #2
0
ファイル: ErrorHandlerTest.php プロジェクト: narixx/zf2
 public function testPostDispatchWithoutException()
 {
     $this->request->setModuleName('foo')->setControllerName('bar')->setActionName('baz');
     $this->plugin->postDispatch($this->request);
     $this->assertEquals('baz', $this->request->getActionName());
     $this->assertEquals('bar', $this->request->getControllerName());
     $this->assertEquals('foo', $this->request->getModuleName());
 }