1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Move regression tests of SOAP to bugs directory (#14322)

There's a bugs directory but it wasn't always used, move the regression
tests to this directory.
This commit is contained in:
Niels Dossche
2024-05-27 19:21:35 +02:00
committed by GitHub
parent 4f311f86cc
commit a70fd5386b
28 changed files with 8 additions and 8 deletions

View File

@@ -6,12 +6,12 @@ soap.wsdl_cache_enabled=0
soap
--SKIPIF--
<?php
require __DIR__.'/../../standard/tests/http/server.inc';
require __DIR__.'/../../../standard/tests/http/server.inc';
http_server_skipif();
?>
--FILE--
<?php
require __DIR__.'/../../standard/tests/http/server.inc';
require __DIR__.'/../../../standard/tests/http/server.inc';
function chunk_body($body, $n)
{
@@ -25,7 +25,7 @@ function chunk_body($body, $n)
return join('', $chunks);
}
$wsdl = file_get_contents(__DIR__.'/server030.wsdl');
$wsdl = file_get_contents(__DIR__.'/../server030.wsdl');
$soap = <<<EOF
<?xml version="1.0" encoding="UTF-8"?>

View File

@@ -5,14 +5,14 @@ soap
zlib
--SKIPIF--
<?php
if (!file_exists(__DIR__ . "/../../../sapi/cli/tests/php_cli_server.inc")) {
if (!file_exists(__DIR__ . "/../../../../sapi/cli/tests/php_cli_server.inc")) {
echo "skip sapi/cli/tests/php_cli_server.inc required but not found";
}
?>
--FILE--
<?php
include __DIR__ . "/../../../sapi/cli/tests/php_cli_server.inc";
include __DIR__ . "/../../../../sapi/cli/tests/php_cli_server.inc";
function get_data($max)
{

View File

@@ -7,11 +7,11 @@ soap
$options = array("cache_wsdl" => WSDL_CACHE_NONE);
// Need a warm-up for globals
for ($i = 0; $i < 10; $i++) {
$client = new SoapClient(__DIR__ . "/test.wsdl", $options);
$client = new SoapClient(__DIR__ . "/../test.wsdl", $options);
}
$usage = memory_get_usage();
for ($i = 0; $i < 10; $i++) {
$client = new SoapClient(__DIR__ . "/test.wsdl", $options);
$client = new SoapClient(__DIR__ . "/../test.wsdl", $options);
}
$usage_delta = memory_get_usage() - $usage;
var_dump($usage_delta);

View File

@@ -52,7 +52,7 @@ $options=Array(
"to_xml" => "book_to_xml"))
);
$server = new SoapServer(__DIR__."/classmap.wsdl",$options);
$server = new SoapServer(__DIR__."/../classmap.wsdl",$options);
$server->setClass("test");
$server->handle($HTTP_RAW_POST_DATA);
echo "ok\n";