Пример #1
0
 public function testGetRequestUriReadsAndParsesRequestUri()
 {
     $requestData = array('REQUEST_URI' => '/phrest-test/');
     $request = new Request($requestData);
     $requestUri = $request->getRequestUri();
     $this->assertEquals('/phrest-test', $requestUri);
     $requestData = array('REQUEST_URI' => '/phrest-test/?name=dave');
     $request = new Request($requestData);
     $requestUri = $request->getRequestUri();
     $this->assertEquals('/phrest-test', $requestUri);
 }