xref: /PHP-8.4/ext/soap/tests/server011.phpt (revision 5f3e6e34)
1--TEST--
2SOAP Server 11: bind
3--SKIPIF--
4<?php
5if (PHP_OS_FAMILY === "Windows") {
6    die("skip currently unsupported on Windows");
7}
8?>
9--EXTENSIONS--
10soap
11--GET--
12wsdl
13--INI--
14soap.wsdl_cache_enabled=0
15--FILE--
16<?php
17function Add($x,$y) {
18  return $x+$y;
19}
20
21$server = new soapserver(__DIR__."/test.wsdl");
22ob_start();
23$server->handle();
24$wsdl = ob_get_contents();
25ob_end_clean();
26if ($wsdl == file_get_contents(__DIR__."/test.wsdl")) {
27  echo "ok\n";
28} else {
29    echo "fail\n";
30}
31?>
32--EXPECT--
33ok
34