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