Beispiel #1
0
 function testPropFind()
 {
     $propFind = new DAV\PropFind('testdir', ['{DAV:}displayname', '{DAV:}getcontentlength', '{DAV:}bar', '{DAV:}owner']);
     $r = $this->server->emit('propFind', [$propFind, new DAV\SimpleCollection('testdir')]);
     $this->assertTrue($r);
     $expected = [200 => [], 404 => [], 403 => ['{DAV:}displayname' => null, '{DAV:}getcontentlength' => null, '{DAV:}bar' => null, '{DAV:}owner' => null]];
     $this->assertEquals($expected, $propFind->getResultForMultiStatus());
 }