Explorar o código

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 %!s(int64=12) %!d(string=hai) anos
pai
achega
677d02723d
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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;
     }