/** * 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); }
/** * 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); }