Просмотр исходного кода

[TESTS] Fixed fails tests Online with execution of Zend_Service_AllTests.

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23174 44c647ce-9c0f-0410-b52a-842ac1e357ba
ramon 15 лет назад
Родитель
Сommit
261def3bb2
1 измененных файлов с 9 добавлено и 0 удалено
  1. 9 0
      tests/Zend/Service/Ebay/Finding/OnlineTest.php

+ 9 - 0
tests/Zend/Service/Ebay/Finding/OnlineTest.php

@@ -44,9 +44,18 @@ class Zend_Service_Ebay_Finding_OnlineTest extends PHPUnit_Framework_TestCase
      */
     protected $_finding;
 
+    protected $_httpClientOriginal;
+
     protected function setUp()
     {
         $this->_finding = new Zend_Service_Ebay_Finding(constant('TESTS_ZEND_SERVICE_EBAY_ONLINE_APPID'));
+        $this->_httpClientOriginal = Zend_Rest_Client::getHttpClient();
+        Zend_Rest_Client::setHttpClient(new Zend_Http_Client());
+    }
+
+    public function tearDown()
+    {
+        Zend_Rest_Client::setHttpClient($this->_httpClientOriginal);
     }
 
     public function testInvalidAppId()