/** * @depends testParse_principal_search_property_set * @param DAV_Test_Request_REPORT $obj * @return void */ public function testHandle_principal_search_property_set($obj) { $returnValue = array('DAV: displayname' => 'The displayname of the principal', 'DAV: getcontenttype' => 'The content type of the principal'); $resource = $this->getMock('DAVACL_Test_Resource', array('report_principal_search_property_set'), array($_SERVER['REQUEST_URI'])); $resource->expects($this->any())->method('report_principal_search_property_set')->will($this->returnValue($returnValue)); DAV::$REGISTRY->setResourceClass($resource); $this->expectOutputString(<<<EOS <?xml version="1.0" encoding="utf-8"?> <D:principal-search-property-set xmlns:D="DAV:"> <D:principal-search-property><D:prop> <D:displayname/><D:description xml:lang="en">The displayname of the principal</D:description></D:principal-search-property> <D:principal-search-property><D:prop> <D:getcontenttype/><D:description xml:lang="en">The content type of the principal</D:description></D:principal-search-property> </D:principal-search-property-set> EOS ); $obj->handleRequest(); }
public static function setInputstring($inputstring) { self::$inputstring = $inputstring; }