xref: /PHP-7.4/ext/soap/tests/bugs/bug34657.phpt (revision 17ccbeec)
1--TEST--
2Bug #34657 (If you get a communication problem when loading the WSDL, it fatal's)
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6?>
7--FILE--
8<?php
9try {
10	$client = new SoapClient('http://i_dont_exist.com/some.wsdl');
11	echo "?\n";
12} catch (SoapFault $e) {
13	echo get_class($e)."\n";
14	echo $e->faultstring."\n";
15	echo "ok\n";
16} catch (Exception $e) {
17	echo get_class($e)."\n";
18}
19?>
20--EXPECTF--
21SoapFault
22SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://i_dont_exist.com/some.wsdl'%A
23ok
24