Exemplo n.º 1
0
 /**
  * reset zend service http client
  *
  * @return void
  */
 public function setUp()
 {
     if (!defined('TESTS_ZEND_SERVICE_SHORTURL_BITLY_ENABLED') || !constant('TESTS_ZEND_SERVICE_SHORTURL_BITLY_ENABLED')) {
         $this->markTestSkipped('Testing Zend_Service_ShortUrl_BitLyTest only works when TESTS_ZEND_SERVICE_SHORTURL_BITLY_ENABLED is set.');
     }
     Zend_Service_Abstract::setHttpClient(new Zend_Http_Client());
 }
Exemplo n.º 2
0
 /**
  * Creates a new Zend_Service_ShortUrl_IsGd object for each test method
  *
  * @return void
  */
 public function setUp()
 {
     if (!defined('TESTS_ZEND_SERVICE_SHORTURL_ISGD_ENABLED') || !constant('TESTS_ZEND_SERVICE_SHORTURL_ISGD_ENABLED')) {
         $this->markTestSkipped('Testing Zend_Service_ShortUrl_IsGdTest only works when TESTS_ZEND_SERVICE_SHORTURL_ISGD_ENABLED is set.');
     }
     Zend_Service_Abstract::setHttpClient(new Zend_Http_Client());
     $this->_s = new Zend_Service_ShortUrl_IsGd();
     $this->_s->getHttpClient()->resetParameters(true);
 }
Exemplo n.º 3
0
 /**
  * Creates a new Zend_Service_JdemCz object for each test method
  *
  * @return void
  */
 public function setUp()
 {
     Zend_Service_Abstract::setHttpClient(new Zend_Http_Client());
     $this->_s = new Zend_Service_ShortUrl_JdemCz();
 }
 public function teardown()
 {
     Zend_Service_Abstract::setHttpClient(new Zend_Http_Client());
 }
Exemplo n.º 5
0
 /**
  * Creates a new Zend_Service_ShortUrl_IsGd object for each test method
  *
  * @return void
  */
 public function setUp()
 {
     Zend_Service_Abstract::setHttpClient(new Zend_Http_Client());
     $this->_s = new Zend_Service_ShortUrl_IsGd();
     $this->_s->getHttpClient()->resetParameters(true);
 }
Exemplo n.º 6
0
 public function setUp()
 {
     $this->_adapter = new Zend_Http_Client_Adapter_Test();
     $client = new Zend_Http_Client(null, array('adapter' => $this->_adapter));
     Zend_Service_Abstract::setHttpClient($client);
 }