mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
- Test for bug #44811
This commit is contained in:
parent
0e2f6d8c6f
commit
b9af1cc162
1 changed files with 20 additions and 0 deletions
20
ext/soap/tests/bugs/bug44811.phpt
Normal file
20
ext/soap/tests/bugs/bug44811.phpt
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
--TEST--
|
||||||
|
Bug #44811 (Improve error messages when creating new SoapClient
|
||||||
|
which contains invalid data)
|
||||||
|
--SKIPIF--
|
||||||
|
<?php require_once 'skipif.inc'; ?>
|
||||||
|
--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');
|
||||||
|
?>
|
||||||
|
--EXPECT--
|
||||||
|
SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://slashdot.org' : Premature end of data in tag html line 3
|
||||||
|
|
||||||
|
ok
|
Loading…
Add table
Add a link
Reference in a new issue