Browse Source

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 years ago
parent
commit
677d02723d
1 changed files with 4 additions and 1 deletions
  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;
     }