xref: /PHP-7.2/ext/soap/tests/bugs/bug70469.phpt (revision f1d7e3ca)
1--TEST--
2Bug #70469 (SoapClient should not generate E_ERROR if exceptions enabled)
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7try {
8    $x = new SoapClient('http://i_dont_exist.com/some.wsdl');
9} catch (SoapFault $e) {
10    echo "catched\n";
11}
12
13$error = error_get_last();
14if ($error === null) {
15    echo "ok\n";
16}
17?>
18--EXPECT--
19catched
20ok
21