xref: /PHP-5.3/ext/soap/tests/server011.phpt (revision 9c64182a)
1--TEST--
2SOAP Server 11: bind
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--GET--
6wsdl
7--INI--
8soap.wsdl_cache_enabled=0
9--FILE--
10<?php
11function Add($x,$y) {
12  return $x+$y;
13}
14
15$server = new soapserver(dirname(__FILE__)."/test.wsdl");
16ob_start();
17$server->handle();
18$wsdl = ob_get_contents();
19ob_end_clean();
20if ($wsdl == file_get_contents(dirname(__FILE__)."/test.wsdl")) {
21  echo "ok\n";
22} else {
23	echo "fail\n";
24}
25?>
26--EXPECT--
27ok
28