setAdapter() 공개 메소드

Load the connection adapter
public setAdapter ( Zend_Http_Client_Adapter_Interface $adapter ) : void
$adapter Zend_Http_Client_Adapter_Interface
리턴 void
예제 #1
0
 /**
  * @expectedException Zend_Gdata_App_HttpException
  */
 public function testGetAuthSubTokenInfoCatchesHttpClientException()
 {
     $adapter = new Zend_Http_Client_Adapter_Test();
     $adapter->setNextRequestWillFail(true);
     $client = new Zend_Gdata_HttpClient();
     $client->setUri('http://example.com/AuthSub');
     $client->setAdapter($adapter);
     $revoked = Zend_Gdata_AuthSub::getAuthSubTokenInfo($this->token, $client);
 }