瀏覽代碼

Do not add Zend_Soap_AutoDiscover_OnlineTest to Zend_Soap_AllTests if TESTS_ZEND_SOAP_AUTODISCOVER_ONLINE_SERVER_BASEURI if TESTS_ZEND_SOAP_AUTODISCOVER_ONLINE_SERVER_BASEURI is not defined.

Rob Allen 12 年之前
父節點
當前提交
677d02723d
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      tests/Zend/Soap/AllTests.php

+ 4 - 1
tests/Zend/Soap/AllTests.php

@@ -57,7 +57,10 @@ class Zend_Soap_AllTests
         $suite->addTestSuite('Zend_Soap_Wsdl_ArrayOfTypeComplexStrategyTest');
         $suite->addTestSuite('Zend_Soap_Wsdl_ArrayOfTypeSequenceStrategyTest');
         $suite->addTestSuite('Zend_Soap_AutoDiscoverTest');
-        $suite->addTestSuite('Zend_Soap_AutoDiscover_OnlineTest');
+        
+        if (!defined('TESTS_ZEND_SOAP_AUTODISCOVER_ONLINE_SERVER_BASEURI') || constant('TESTS_ZEND_SOAP_AUTODISCOVER_ONLINE_SERVER_BASEURI') == false) {
+            $suite->addTestSuite('Zend_Soap_AutoDiscover_OnlineTest');
+        }
 
         return $suite;
     }