8require_once 
'Sabre/HTTP/ResponseMock.php';
 
   15            'REQUEST_METHOD' => 
'REPORT',
 
   16            'REQUEST_URI'    => 
'/addressbooks/user1/book1',
 
   21<c:addressbook-multiget xmlns:d="DAV:" xmlns:c="urn:ietf:params:xml:ns:carddav"> 
   26    <d:href>/addressbooks/user1/book1/card1</d:href> 
   27</c:addressbook-multiget>' 
   32        $this->server->httpRequest = 
$request;
 
   35        $this->server->exec();
 
   37        $this->assertEquals(207, 
$response->status, 
'Incorrect status code. Full response body:' . 
$response->body);
 
   45            '/addressbooks/user1/book1/card1' => [
 
   47                    '{DAV:}getetag'                                => 
'"' . md5(
"BEGIN:VCARD\nVERSION:3.0\nUID:12345\nEND:VCARD") . 
'"',
 
   48                    '{urn:ietf:params:xml:ns:carddav}address-data' => 
"BEGIN:VCARD\nVERSION:3.0\nUID:12345\nEND:VCARD",
 
   58            'REQUEST_METHOD' => 
'REPORT',
 
   59            'REQUEST_URI'    => 
'/addressbooks/user1/book1',
 
   64<c:addressbook-multiget xmlns:d="DAV:" xmlns:c="urn:ietf:params:xml:ns:carddav"> 
   67      <c:address-data content-type="text/vcard" version="4.0" /> 
   69    <d:href>/addressbooks/user1/book1/card1</d:href> 
   70</c:addressbook-multiget>' 
   75        $this->server->httpRequest = 
$request;
 
   78        $this->server->exec();
 
   80        $this->assertEquals(207, 
$response->status, 
'Incorrect status code. Full response body:' . 
$response->body);
 
   90            '/addressbooks/user1/book1/card1' => [
 
   92                    '{DAV:}getetag'                                => 
'"' . md5(
"BEGIN:VCARD\nVERSION:3.0\nUID:12345\nEND:VCARD") . 
'"',
 
   93                    '{urn:ietf:params:xml:ns:carddav}address-data' => 
"BEGIN:VCARD\r\nVERSION:4.0\r\n$prodId\r\nUID:12345\r\nEND:VCARD\r\n",
 
foreach($paths as $path) $request
An exception for terminatinating execution or to throw for unit testing.
static createFromServerArray(array $serverArray)
This static method will create a new Request object, based on a PHP $_SERVER array.
const VERSION
Full version number.
if($_SERVER['argc']< 4) $client