Annotation of embedaddon/php/ext/soap/tests/bugs/bug34657.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #34657 (If you get a communication problem when loading the WSDL, it fatal's)
                      3: --SKIPIF--
                      4: <?php 
                      5: require_once('skipif.inc'); 
                      6: if (extension_loaded("openssl")) {
                      7:        /* 
                      8:         when openssl loaded, tcp stream is less verbose, so some error messages are missing 
                      9:         so let's skip the test in this case  
                     10:         */
                     11:        die("skip");
                     12: }
                     13: ?>
                     14: --FILE--
                     15: <?php
                     16: try {
                     17:        $client = new SoapClient('http://i_dont_exist.com/some.wsdl');
                     18:        echo "?\n";
                     19: } catch (SoapFault $e) {
                     20:        echo get_class($e)."\n";
                     21:        echo $e->faultstring."\n";
                     22:        echo "ok\n";
                     23: } catch (Exception $e) {
                     24:        echo get_class($e)."\n";
                     25: }
                     26: ?>
                     27: --EXPECTF--
                     28: Warning: SoapClient::SoapClient(): %s %sbug34657.php on line 3
                     29: 
                     30: Warning: SoapClient::SoapClient(http://i_dont_exist.com/some.wsdl): failed to open stream: %sbug34657.php on line 3
                     31: 
                     32: Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "http://i_dont_exist.com/some.wsdl" in %sbug34657.php on line 3
                     33: SoapFault
                     34: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://i_dont_exist.com/some.wsdl'%S
                     35: ok

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>