bug44811.phpt 461 B

123456789101112131415161718192021
  1. --TEST--
  2. Bug #44811 (Improve error messages when creating new SoapClient which contains invalid data)
  3. --EXTENSIONS--
  4. soap
  5. --SKIPIF--
  6. <?php if (getenv("SKIP_ONLINE_TESTS")) die("skip online test"); ?>
  7. --INI--
  8. soap.wsdl_cache_enabled=0
  9. --FILE--
  10. <?php
  11. try {
  12. $x = new SoapClient('https://php.net');
  13. } catch (SoapFault $e) {
  14. echo $e->getMessage() . PHP_EOL;
  15. }
  16. die('ok');
  17. ?>
  18. --EXPECTF--
  19. SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://php.net' : %s
  20. ok