/** * @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(); }
/** * @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(); }