Example #1
0
 public function testRewritePathInfoWithSameValue()
 {
     $expected = '/one/two';
     $this->_model = new Request($this->_routerListMock, $this->_infoProcessorMock, 'http://test.com' . $expected);
     $this->_model->rewritePathInfo($expected);
     $this->assertEquals($expected, $this->_model->getPathInfo());
 }
Example #2
0
 public function testRewritePathInfoWithSameValue()
 {
     $expected = '/one/two';
     $uri = 'http://test.com' . $expected;
     $this->_model = $this->_model = $this->getModel($uri);
     $this->_model->rewritePathInfo($expected);
     $this->assertEquals($expected, $this->_model->getPathInfo());
 }