XML; $request = new Request('REPORT', '/principals/user1', ['Content-Type' => 'application/xml', 'Depth' => 0]); $request->setBody($xml); $response = $this->request($request, 207); $expected = << /principals/admin/ /principals/admin/ Admin HTTP/1.1 200 OK XML; $this->assertXmlStringEqualsXmlString( $expected, $response->getBodyAsString() ); } function testReportDepth1() { $xml = << XML; $request = new Request('REPORT', '/principals/user1', ['Content-Type' => 'application/xml', 'Depth' => 1]); $request->setBody($xml); $this->request($request, 400); } }