bug50698_3.phpt 758 B

12345678910111213141516171819202122
  1. --TEST--
  2. Request #50698_3 (SoapClient should handle wsdls with some incompatible endpoints -- EDGECASE: Large set of endpoints all incompatible.)
  3. --EXTENSIONS--
  4. soap
  5. --INI--
  6. soap.wsdl_cache_enabled=0
  7. --FILE--
  8. <?php
  9. try {
  10. new SoapClient(__DIR__ . '/bug50698_3.wsdl');
  11. echo "Call: \"new SoapClient(__DIR__.'/bug50698_3.wsdl');\" should throw an exception of type 'SoapFault'";
  12. } catch (SoapFault $e) {
  13. if ($e->faultcode == 'WSDL' && $e->faultstring == 'SOAP-ERROR: Parsing WSDL: Could not find any usable binding services in WSDL.') {
  14. echo "ok\n";
  15. } else {
  16. echo "Call: \"new SoapClient(__DIR__.'/bug50698_3.wsdl');\" threw a SoapFault with an incorrect faultcode or faultmessage.";
  17. print_r($e);
  18. }
  19. }
  20. ?>
  21. --EXPECT--
  22. ok