Ejemplo n.º 1
0
 /**
  * @covers \Sabre\DAV\Server::guessBaseUri
  * @depends testGuessBaseUri
  * @expectedException \Sabre\DAV\Exception
  */
 function testGuessBaseUriBadConfig()
 {
     $serverVars = array('REQUEST_URI' => '/index.php/root/heyyy', 'PATH_INFO' => '/root');
     $httpRequest = new HTTP\Request($serverVars);
     $server = new Server();
     $server->httpRequest = $httpRequest;
     $server->guessBaseUri();
 }
Ejemplo n.º 2
0
 /**
  * @depends testGuessBaseUri
  * @expectedException \Sabre\DAV\Exception
  */
 function testGuessBaseUriBadConfig()
 {
     $serverVars = ['REQUEST_URI' => '/index.php/root/heyyy', 'PATH_INFO' => '/root'];
     $httpRequest = HTTP\Sapi::createFromServerArray($serverVars);
     $server = new Server();
     $server->httpRequest = $httpRequest;
     $server->guessBaseUri();
 }