function _Auth_OpenID_discoverXRIServiceList($uri, &$fetcher) { list($url, $services, $resp) = _Auth_OpenID_discoverXRI($uri, $fetcher); return $services; }
function test_xriDiscovery() { global $__yadis_2entries; $documents = array('=smoker' => array('application/xrds+xml', $__yadis_2entries)); $fetcher = new _MockFetcherForXRIProxy($documents); list($user_xri, $services) = _Auth_OpenID_discoverXRI('=smoker', $fetcher); $this->assertTrue($services); $this->assertEquals($services[0]->server_url, "http://www.myopenid.com/server"); $this->assertEquals($services[1]->server_url, "http://www.livejournal.com/openid/server.bml"); $this->assertEquals($services[0]->canonicalID, Services_Yadis_XRI("=!1000")); }