12            'HTTP_PREFER' => 
'return-asynch',
 
   16        $server->httpRequest = $httpRequest;
 
   19            'respond-async' => 
true,
 
   30            'HTTP_PREFER' => 
'wait=10',
 
   34        $server->httpRequest = $httpRequest;
 
   37            'respond-async' => 
false,
 
   48            'HTTP_PREFER' => 
'return-minimal, strict,lenient',
 
   52        $server->httpRequest = $httpRequest;
 
   55            'respond-async' => 
false,
 
   56            'return'        => 
'minimal',
 
   57            'handling'      => 
'lenient',
 
   66            'HTTP_PREFER' => 
'BOOOH',
 
   70        $server->httpRequest = $httpRequest;
 
   73            'respond-async' => 
false,
 
   89        $server->httpRequest = $httpRequest;
 
   92            'respond-async' => 
false,
 
   93            'return'        => 
'minimal',
 
  108            'REQUEST_METHOD' => 
'PROPFIND',
 
  109            'REQUEST_URI'    => 
'/',
 
  110            'HTTP_PREFER'    => 
'return-minimal',
 
  114<d:propfind xmlns:d=
"DAV:">
 
  127        $this->assertEquals(207, 
$response->getStatus(), $body);
 
  129        $this->assertTrue(strpos($body, 
'resourcetype') !== 
false, $body);
 
  130        $this->assertTrue(strpos($body, 
'something') === 
false, $body);
 
  136        $request = 
new HTTP\Request(
'PROPPATCH', 
'/', [
'Prefer' => 
'return-minimal']);
 
  139<d:propertyupdate xmlns:d=
"DAV:">
 
  142            <d:something>nope!</d:something>
 
  149        $this->server->on(
'propPatch', 
function(
$path, 
PropPatch $propPatch) {
 
  151            $propPatch->
handle(
'{DAV:}something', 
function($props) {
 
  159        $this->assertEquals(0, strlen(
$response->body), 
'Expected empty body: ' . 
$response->body);
 
  160        $this->assertEquals(204, 
$response->status);
 
  166        $request = 
new HTTP\Request(
'PROPPATCH', 
'/', [
'Prefer' => 
'return-minimal']);
 
  169<d:propertyupdate xmlns:d=
"DAV:">
 
  172            <d:something>nope!</d:something>
 
  183        $this->assertEquals(207, 
$response->status);
 
  184        $this->assertTrue(strpos($body, 
'something') !== 
false);
 
  185        $this->assertTrue(strpos($body, 
'403 Forbidden') !== 
false, $body);
 
foreach($paths as $path) $request
An exception for terminatinating execution or to throw for unit testing.
This class may be used as a basis for other webdav-related unittests.
request($request, $expectedStatus=null)
Makes a request, and returns a response object.
testproppatchMinimalError()
testpropfindMinimal()
propfindMinimal
This class represents a set of properties that are going to be updated.
handle($properties, callable $callback)
Call this function if you wish to handle updating certain properties.
static createFromServerArray(array $serverArray)
This static method will create a new Request object, based on a PHP $_SERVER array.