Definition at line 10 of file MultiGetTest.php.
◆ testMultiGet()
Sabre\CardDAV\MultiGetTest::testMultiGet |
( |
| ) |
|
Definition at line 12 of file MultiGetTest.php.
References $client, $request, $response, $result, and Sabre\HTTP\Sapi\createFromServerArray().
15 'REQUEST_METHOD' =>
'REPORT',
16 'REQUEST_URI' =>
'/addressbooks/user1/book1',
20 '<?xml version="1.0"?> 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);
40 $client =
new DAV\Client([
'baseUri' =>
'/']);
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",
foreach($paths as $path) $request
if($_SERVER['argc']< 4) $client
static createFromServerArray(array $serverArray)
This static method will create a new Request object, based on a PHP $_SERVER array.
◆ testMultiGetVCard4()
Sabre\CardDAV\MultiGetTest::testMultiGetVCard4 |
( |
| ) |
|
Definition at line 55 of file MultiGetTest.php.
References $client, $request, $response, $result, Sabre\HTTP\Sapi\createFromServerArray(), and Sabre\VObject\Version\VERSION.
58 'REQUEST_METHOD' =>
'REPORT',
59 'REQUEST_URI' =>
'/addressbooks/user1/book1',
63 '<?xml version="1.0"?> 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);
83 $client =
new DAV\Client([
'baseUri' =>
'/']);
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
const VERSION
Full version number.
if($_SERVER['argc']< 4) $client
static createFromServerArray(array $serverArray)
This static method will create a new Request object, based on a PHP $_SERVER array.
The documentation for this class was generated from the following file: