Auth_Yadis_DiscoveryResult::isXRDS PHP Method

isXRDS() public method

public isXRDS ( )
    function isXRDS()
    {
        // Is the response text supposed to be an XRDS document?
        return $this->usedYadisLocation() || $this->content_type == Auth_Yadis_CONTENT_TYPE;
    }

Usage Example

 function test_is_xrds_neither()
 {
     $result = new Auth_Yadis_DiscoveryResult('http://request.uri/');
     $result->normalized_uri = $result->xrds_uri = "http://normalized/";
     $result->content_type = "another/content-type";
     $this->assertTrue(!$result->isXRDS());
 }