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