コード例 #1
0
ファイル: RedirectorTest.php プロジェクト: rexmac/zf2
 public function testSetGotoUrlWithBaseUrlUsingPrependBaseOption()
 {
     $this->request->setBaseUrl('/my');
     $this->redirector->setGotoUrl('/foo/bar', array('prependBase' => true));
     $this->assertEquals('/my/foo/bar', $this->redirector->getRedirectUrl());
 }
コード例 #2
0
ファイル: HttpTest.php プロジェクト: heiglandreas/zf2
 public function testSetBaseUrl()
 {
     $this->_request->setBaseUrl('/news');
     $this->assertEquals('/news', $this->_request->getBaseUrl());
 }