array (
'request' =>
array (
'body' => '
http://example.com/some/user
',
'server' =>
array (
'REQUEST_METHOD' => 'LOCK',
'REQUEST_URI' => '/collection/resource.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_TIMEOUT' => 'Infinite, Second-4100000000',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '
Infinity
http://example.com/some/user
Second-604800
opaquelocktoken:12345678-1234-1234-1234-123456789012
2008-11-09T22:14:18+00:00
',
'headers' =>
array (
'Lock-Token' => 'opaquelocktoken:12345678-1234-1234-1234-123456789012',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Type' => 'text/xml; charset="utf-8"',
),
'status' => 'HTTP/1.1 200 OK',
),
),
2 =>
array (
'request' =>
array (
'body' => '
http://example.com/some/user
',
'server' =>
array (
'REQUEST_METHOD' => 'LOCK',
'REQUEST_URI' => '/collection/',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_TIMEOUT' => 'Infinite, Second-4100000000',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '
Infinity
http://example.com/some/user
Second-604800
opaquelocktoken:12345678-1234-1234-1234-123456789012
2008-11-09T22:14:18+00:00
',
'headers' =>
array (
'Lock-Token' => 'opaquelocktoken:12345678-1234-1234-1234-123456789012',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Type' => 'text/xml; charset="utf-8"',
),
'status' => 'HTTP/1.1 200 OK',
),
),
3 =>
array (
'request' =>
array (
'body' => '
http://example.com/some/user
',
'server' =>
array (
'REQUEST_METHOD' => 'LOCK',
'REQUEST_URI' => '/collection/newresource.xml',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_TIMEOUT' => 'Infinite, Second-4100000000',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '
Infinity
http://example.com/some/user
Second-604800
opaquelocktoken:12345678-1234-1234-1234-123456789012
2008-11-09T22:14:18+00:00
',
'headers' =>
array (
'Lock-Token' => 'opaquelocktoken:12345678-1234-1234-1234-123456789012',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Type' => 'text/xml; charset="utf-8"',
),
'status' => 'HTTP/1.1 201 Created',
),
),
4 =>
array (
'request' =>
array (
'body' => '
http://example.com/some/user
',
'server' =>
array (
'REQUEST_METHOD' => 'LOCK',
'REQUEST_URI' => '/collection/newcollection',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_TIMEOUT' => 'Infinite, Second-4100000000',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '
Infinity
http://example.com/some/user
Second-604800
opaquelocktoken:12345678-1234-1234-1234-123456789012
2008-11-09T22:14:18+00:00
',
'headers' =>
array (
'Lock-Token' => 'opaquelocktoken:12345678-1234-1234-1234-123456789012',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Type' => 'text/xml; charset="utf-8"',
),
'status' => 'HTTP/1.1 201 Created',
),
),
5 =>
array (
'request' =>
array (
'body' => '
http://example.com/some/user
',
'server' =>
array (
'REQUEST_METHOD' => 'LOCK',
'REQUEST_URI' => '/collection/resource.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_TIMEOUT' => 'Infinite, Second-4100000000',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 423 Locked',
),
),
6 =>
array (
'request' =>
array (
'body' => '
http://example.com/some/user
',
'server' =>
array (
'REQUEST_METHOD' => 'LOCK',
'REQUEST_URI' => '/collection/',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_TIMEOUT' => 'Infinite, Second-4100000000',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 423 Locked',
),
),
7 =>
array (
'request' =>
array (
'body' => '
http://example.com/some/user
',
'server' =>
array (
'REQUEST_METHOD' => 'LOCK',
'REQUEST_URI' => '/collection/',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_TIMEOUT' => 'Infinite, Second-4100000000',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 423 Locked',
),
),
8 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'UNLOCK',
'REQUEST_URI' => '/collection/resource.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_LOCK_TOKEN' => '',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 204 No Content',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
),
),
),
),
9 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'UNLOCK',
'REQUEST_URI' => '/collection',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_LOCK_TOKEN' => '',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 204 No Content',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
),
),
),
),
10 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'UNLOCK',
'REQUEST_URI' => '/collection/resource.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_LOCK_TOKEN' => '',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 204 No Content',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
),
),
),
),
11 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'UNLOCK',
'REQUEST_URI' => '/collection/resource.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_LOCK_TOKEN' => '',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 204 No Content',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
),
),
),
),
12 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'UNLOCK',
'REQUEST_URI' => '/collection/resource.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_LOCK_TOKEN' => '',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 204 No Content',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
),
),
),
),
13 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'UNLOCK',
'REQUEST_URI' => '/collection/resource.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_LOCK_TOKEN' => '',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 204 No Content',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
),
),
),
),
14 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'MOVE',
'REQUEST_URI' => '/collection/resource.html',
'HTTP_DESTINATION' => '/other_collection/moved_resource.html',
'HTTP_OVERWRITE' => 'F',
'HTTP_IF' => '() ()',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 201 Created',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
'opaquelocktoken:5678' => true,
),
),
),
),
15 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'MOVE',
'REQUEST_URI' => '/collection/resource.html',
'HTTP_DESTINATION' => '/other_collection/moved_resource.html',
'HTTP_OVERWRITE' => 'F',
'HTTP_IF' => ' ()',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 201 Created',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
'opaquelocktoken:5678' => true,
),
),
),
),
16 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'MOVE',
'REQUEST_URI' => '/collection/resource.html',
'HTTP_DESTINATION' => '/other_collection/moved_resource.html',
'HTTP_OVERWRITE' => 'F',
'HTTP_IF' => ' ()',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 201 Created',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
'opaquelocktoken:5678' => true,
),
),
),
),
17 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'MOVE',
'REQUEST_URI' => '/collection/resource.html',
'HTTP_DESTINATION' => '/other_collection/moved_resource.html',
'HTTP_OVERWRITE' => 'F',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 201 Created',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
'opaquelocktoken:5678' => true,
),
),
),
),
18 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'MOVE',
'REQUEST_URI' => '/collection/resource.html',
'HTTP_DESTINATION' => '/other_collection/moved_resource.html',
'HTTP_OVERWRITE' => 'F',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 423 Locked',
),
),
19 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'MOVE',
'REQUEST_URI' => '/collection/resource.html',
'HTTP_DESTINATION' => '/other_collection/moved_resource.html',
'HTTP_OVERWRITE' => 'F',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 423 Locked',
),
),
20 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'COPY',
'REQUEST_URI' => '/collection/resource.html',
'HTTP_DESTINATION' => '/other_collection/moved_resource.html',
'HTTP_OVERWRITE' => 'F',
'HTTP_IF' => '() ()',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 201 Created',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
'opaquelocktoken:5678' => true,
),
),
),
),
21 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'COPY',
'REQUEST_URI' => '/collection/resource.html',
'HTTP_DESTINATION' => '/other_collection/moved_resource.html',
'HTTP_OVERWRITE' => 'F',
'HTTP_IF' => ' ()',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 201 Created',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
'opaquelocktoken:5678' => true,
),
),
),
),
22 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'COPY',
'REQUEST_URI' => '/collection/resource.html',
'HTTP_DESTINATION' => '/other_collection/moved_resource.html',
'HTTP_OVERWRITE' => 'F',
'HTTP_IF' => ' ()',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 201 Created',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
'opaquelocktoken:5678' => true,
),
),
),
),
23 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'COPY',
'REQUEST_URI' => '/collection/resource.html',
'HTTP_DESTINATION' => '/other_collection/moved_resource.html',
'HTTP_OVERWRITE' => 'F',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 201 Created',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
'opaquelocktoken:5678' => true,
),
),
),
),
24 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'COPY',
'REQUEST_URI' => '/collection/resource.html',
'HTTP_DESTINATION' => '/other_collection/moved_resource.html',
'HTTP_OVERWRITE' => 'F',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 423 Locked',
),
),
25 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'COPY',
'REQUEST_URI' => '/collection/resource.html',
'HTTP_DESTINATION' => '/other_collection/moved_resource.html',
'HTTP_OVERWRITE' => 'F',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 201 Created',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
'opaquelocktoken:5678' => true,
),
),
),
),
30 =>
array (
'request' =>
array (
'body' => '
',
'server' =>
array (
'REQUEST_METHOD' => 'PROPFIND',
'REQUEST_URI' => '/collection/',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_DEPTH' => 'infinity',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '
http://example.com/collection/
HTTP/1.1 200 OK
http://example.com/collection/resource.html
HTTP/1.1 200 OK
',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Type' => 'text/xml; charset="utf-8"',
),
'status' => 'HTTP/1.1 207 Multi-Status',
),
),
31 =>
array (
'request' =>
array (
'body' => '
',
'server' =>
array (
'REQUEST_METHOD' => 'PROPFIND',
'REQUEST_URI' => '/collection/',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_DEPTH' => 'infinity',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '
http://example.com/collection/
Infinity
http://example.com/some/user
Second-604800
opaquelocktoken:1234
2008-11-09T22:14:18+00:00
HTTP/1.1 200 OK
http://example.com/collection/resource.html
Infinity
http://example.com/some/user
Second-604800
opaquelocktoken:1234
/collection
HTTP/1.1 200 OK
',
'headers' =>
array (
'Content-Type' => 'text/xml; charset="utf-8"',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
),
'status' => 'HTTP/1.1 207 Multi-Status',
),
),
32 =>
array (
'request' =>
array (
'body' => '
',
'server' =>
array (
'REQUEST_METHOD' => 'PROPFIND',
'REQUEST_URI' => '/collection/',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_DEPTH' => 'infinity',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '
http://example.com/collection/
0
http://example.com/some/user
Second-604800
opaquelocktoken:1234
2008-11-09T22:14:18+00:00
HTTP/1.1 200 OK
http://example.com/collection/resource.html
HTTP/1.1 200 OK
',
'headers' =>
array (
'Content-Type' => 'text/xml; charset="utf-8"',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
),
'status' => 'HTTP/1.1 207 Multi-Status',
),
),
33 =>
array (
'request' =>
array (
'body' => '
',
'server' =>
array (
'REQUEST_METHOD' => 'PROPFIND',
'REQUEST_URI' => '/collection/',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_DEPTH' => 'infinity',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '
http://example.com/collection/
HTTP/1.1 404 Not Found
http://example.com/collection/resource.html
HTTP/1.1 404 Not Found
',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Type' => 'text/xml; charset="utf-8"',
),
'status' => 'HTTP/1.1 207 Multi-Status',
),
),
34 =>
array (
'request' =>
array (
'body' => '
',
'server' =>
array (
'REQUEST_METHOD' => 'PROPFIND',
'REQUEST_URI' => '/collection/',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_DEPTH' => 'infinity',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '
http://example.com/collection/
HTTP/1.1 404 Not Found
http://example.com/collection/resource.html
HTTP/1.1 404 Not Found
',
'headers' =>
array (
'Content-Type' => 'text/xml; charset="utf-8"',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
),
'status' => 'HTTP/1.1 207 Multi-Status',
),
),
40 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'DELETE',
'REQUEST_URI' => '/collection/resource.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_IF' => '()',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 204 No Content',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
),
),
),
),
41 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'DELETE',
'REQUEST_URI' => '/collection/',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_IF' => '()',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 204 No Content',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
),
),
),
),
42 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'DELETE',
'REQUEST_URI' => '/collection/resource.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 204 No Content',
),
),
50 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'GET',
'REQUEST_URI' => '/collection/resource.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => 'Some content.
',
'headers' =>
array (
'ETag' => 'f8fc7a3a8f8050e3f305dac66365e3ef',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Type' => 'application/octet-stream; charset="utf-8"',
),
'status' => 'HTTP/1.1 200 OK',
),
),
51 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'GET',
'REQUEST_URI' => '/collection/resource.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_IF' => '()',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => 'Some content.
',
'headers' =>
array (
'ETag' => 'f8fc7a3a8f8050e3f305dac66365e3ef',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Type' => 'application/octet-stream; charset="utf-8"',
),
'status' => 'HTTP/1.1 200 OK',
),
),
55 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'HEAD',
'REQUEST_URI' => '/collection/resource.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'ETag' => 'f8fc7a3a8f8050e3f305dac66365e3ef',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Type' => 'application/octet-stream; charset="utf-8"',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 200 OK',
),
),
56 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'HEAD',
'REQUEST_URI' => '/collection/resource.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_IF' => '()',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'ETag' => 'f8fc7a3a8f8050e3f305dac66365e3ef',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Type' => 'application/octet-stream; charset="utf-8"',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 200 OK',
),
),
60 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'MKCOL',
'REQUEST_URI' => '/collection/newcollection',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_IF' => '()',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 201 Created',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
),
),
),
),
63 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'MKCOL',
'REQUEST_URI' => '/collection/newcollection',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_IF' => '()',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 405 Method Not Allowed',
),
'failure' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
),
),
),
),
64 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'MKCOL',
'REQUEST_URI' => '/collection/newcollection',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_IF' => '()',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 423 Locked',
),
'failure' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
),
),
),
),
65 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'MKCOL',
'REQUEST_URI' => '/collection/newcollection',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_IF' => '()',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 423 Locked',
),
'failure' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
),
),
),
),
70 =>
array (
'request' =>
array (
'body' => 'Some content.
',
'server' =>
array (
'REQUEST_METHOD' => 'PUT',
'REQUEST_URI' => '/collection/newresource',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'CONTENT_LENGTH' => '13',
'HTTP_IF' => '()',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'ETag' => '48c9fe7465ff389e8b0631b946d881f9',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 201 Created',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
),
),
),
),
71 =>
array (
'request' =>
array (
'body' => 'Some content.
',
'server' =>
array (
'REQUEST_METHOD' => 'PUT',
'REQUEST_URI' => '/collection/newresource',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'CONTENT_LENGTH' => '13',
'HTTP_IF' => '()',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'ETag' => '48c9fe7465ff389e8b0631b946d881f9',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 201 Created',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
),
),
),
),
72 =>
array (
'request' =>
array (
'body' => 'Some content.
',
'server' =>
array (
'REQUEST_METHOD' => 'PUT',
'REQUEST_URI' => '/collection/newresource',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'CONTENT_LENGTH' => '13',
'HTTP_IF' => '()',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'ETag' => '48c9fe7465ff389e8b0631b946d881f9',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 201 Created',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
),
),
),
),
73 =>
array (
'request' =>
array (
'body' => 'Some content.
',
'server' =>
array (
'REQUEST_METHOD' => 'PUT',
'REQUEST_URI' => '/collection/newresource',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'CONTENT_LENGTH' => '13',
'HTTP_IF' => '()',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'ETag' => '48c9fe7465ff389e8b0631b946d881f9',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 201 Created',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
),
),
),
),
74 =>
array (
'request' =>
array (
'body' => 'Some content.
',
'server' =>
array (
'REQUEST_METHOD' => 'PUT',
'REQUEST_URI' => '/collection/newresource',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'CONTENT_LENGTH' => '13',
'HTTP_IF' => '()',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 423 Locked',
),
'failure' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
),
),
),
),
75 =>
array (
'request' =>
array (
'body' => 'Some content.
',
'server' =>
array (
'REQUEST_METHOD' => 'PUT',
'REQUEST_URI' => '/collection/newresource',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'CONTENT_LENGTH' => '13',
'HTTP_IF' => '()',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 423 Locked',
),
'failure' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
),
),
),
),
80 =>
array (
'request' =>
array (
'body' => '
Jim Whitehead
Roy Fielding
',
'server' =>
array (
'REQUEST_METHOD' => 'PROPPATCH',
'REQUEST_URI' => '/collection/resource.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_IF' => '()',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 200 OK',
),
'success' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
),
),
),
),
81 =>
array (
'request' =>
array (
'body' => '
Jim Whitehead
Roy Fielding
',
'server' =>
array (
'REQUEST_METHOD' => 'PROPPATCH',
'REQUEST_URI' => '/collection/resource.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_IF' => '()',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 423 Locked',
),
'failure' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
),
),
),
),
82 =>
array (
'request' =>
array (
'body' => '
Infinity
http://example.com/some/different_user
Second-604800
opaquelocktoken:9101
2008-11-09T22:14:18+00:00
',
'server' =>
array (
'REQUEST_METHOD' => 'PROPPATCH',
'REQUEST_URI' => '/collection/resource.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_IF' => '()',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '
http://example.com/collection/resource.html
HTTP/1.1 409 Conflict
Property \'lockdiscovery\' is readonly.
',
'headers' =>
array (
'Content-Type' => 'text/xml; charset="utf-8"',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
),
'status' => 'HTTP/1.1 207 Multi-Status',
),
'failure' =>
array (
'tokens' =>
array (
'foo' =>
array (
'opaquelocktoken:1234' => true,
),
),
),
),
100 =>
array (
'request' =>
array (
'body' => '
http://example.com/some/user
',
'server' =>
array (
'REQUEST_METHOD' => 'OPTIONS',
'REQUEST_URI' => '/',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_AUTHORIZATION' => 'Basic Zm9vOmJhcg==',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'DAV' => '1, 2',
'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, MKCOL, PUT, LOCK, UNLOCK',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 200 OK',
),
),
);
?>