diff options
author | Sara Golemon <pollita@php.net> | 2020-09-15 15:36:36 +0000 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2020-09-17 14:38:54 +0000 |
commit | 95f2583743bdd758d8dbdc7e23e08a4a2d39e8da (patch) | |
tree | bc36babcef346993e932eec08d5ef5deaa4040e9 /ext/soap | |
parent | cafeec34f9f29b1119cd68aac69933823f004d55 (diff) | |
download | php-git-95f2583743bdd758d8dbdc7e23e08a4a2d39e8da.tar.gz |
Allow http tests to run in parallel by using ephemeral ports
Diffstat (limited to 'ext/soap')
-rw-r--r-- | ext/soap/tests/bug47021.phpt | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/ext/soap/tests/bug47021.phpt b/ext/soap/tests/bug47021.phpt index 757e74ef15..b05505dd19 100644 --- a/ext/soap/tests/bug47021.phpt +++ b/ext/soap/tests/bug47021.phpt @@ -4,12 +4,9 @@ Bug #47021 SoapClient (SoapClient stumbles over WSDL delivered with "Transfer-En soap.wsdl_cache_enabled=0 --SKIPIF-- <?php - require 'skipif.inc'; - -require __DIR__.'/../../standard/tests/http/server.inc'; http_server_skipif('tcp://127.0.0.1:12342'); - -?> +require __DIR__.'/../../standard/tests/http/server.inc'; +http_server_skipif(); --FILE-- <?php require __DIR__.'/../../standard/tests/http/server.inc'; @@ -49,11 +46,11 @@ $responses = [ ]; -$pid = http_server('tcp://127.0.0.1:12342', $responses); +['pid' => $pid, 'uri' => $uri] = http_server($responses); $options = [ 'trace' => true, - 'location' => 'http://127.0.0.1:12342/', + 'location' => $uri, ]; class BugSoapClient extends SoapClient @@ -68,13 +65,12 @@ class BugSoapClient extends SoapClient } } -$client = new BugSoapClient('http://127.0.0.1:12342/', $options); +$client = new BugSoapClient($uri, $options); var_dump(count($client->getItems())); http_server_kill($pid); -?> --EXPECT-- int(1291) int(10) |