예제 #1
0
 /**
  * Sets up this test case
  *
  * @return void
  */
 public function setUp()
 {
     if (!constant('TESTS_ZEND_SERVICE_YAHOO_ONLINE_ENABLED')) {
         $this->markTestSkipped('Zend_Service_Yahoo online tests are not enabled');
     }
     $this->_yahoo = new Zend_Service_Yahoo(constant('TESTS_ZEND_SERVICE_YAHOO_ONLINE_APPID'));
     $this->_httpClientAdapterSocket = new Zend_Http_Client_Adapter_Socket();
     $this->_yahoo->getRestClient()->getHttpClient()->setAdapter($this->_httpClientAdapterSocket);
 }
예제 #2
0
    /**
     * Sets up this test case
     *
     * @return void
     */
    public function setUp()
    {
        $this->_yahoo = new Zend_Service_Yahoo(constant('TESTS_ZEND_SERVICE_YAHOO_ONLINE_APPID'));

        $this->_httpClientAdapterSocket = new Zend_Http_Client_Adapter_Socket();

        $this->_yahoo->getRestClient()
                      ->getHttpClient()
                      ->setAdapter($this->_httpClientAdapterSocket);
    }