1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 18:53:33 +02:00
Files
archived-php-src/ext/soap/tests/bugs/bug44811.phpt
T
Xinchen Hui 94e23b29a1 online test
2015-07-28 16:43:12 +08:00

21 lines
485 B
PHP

--TEST--
Bug #44811 (Improve error messages when creating new SoapClient which contains invalid data)
--SKIPIF--
<?php require_once 'skipif.inc'; ?>
<?php if (getenv("SKIP_ONLINE_TESTS")) die("skip online test"); ?>
--INI--
soap.wsdl_cache_enabled=0
--FILE--
<?php
try {
$x = new SoapClient('http://slashdot.org');
} catch (SoapFault $e) {
echo $e->getMessage() . PHP_EOL;
}
die('ok');
?>
--EXPECTF--
SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://slashdot.org' : %s
ok