/** * @expectedException Sabre\DAV\Exception\BadRequest */ function testGetTimeoutHeaderInvalid() { $request = HTTP\Sapi::createFromServerArray(array('HTTP_TIMEOUT' => 'yourmom')); $this->server->httpRequest = $request; $this->locksPlugin->getTimeoutHeader(); }
/** * @expectedException Sabre\DAV\Exception\BadRequest */ function testGetTimeoutHeaderInvalid() { $request = new HTTP\Request(array('HTTP_TIMEOUT' => 'yourmom')); $this->server->httpRequest = $request; $this->locksPlugin->getTimeoutHeader(); }