コード例 #1
0
ファイル: HttpTest.php プロジェクト: heiglandreas/zf2
 public function testSetGetActionName()
 {
     $this->_request->setActionName('foo');
     $this->assertEquals('foo', $this->_request->getActionName());
     $this->_request->setActionName('bar');
     $this->assertEquals('bar', $this->_request->getActionName());
 }
コード例 #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());
 }