1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 17:52:16 +01:00
Files
archived-php-src/ext/soap/tests/server011.phpt
2004-02-05 20:26:05 +00:00

26 lines
404 B
PHP

--TEST--
SOAP Server 11: bind
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--GET--
wsdl
--FILE--
<?php
function Add($x,$y) {
return $x+$y;
}
$server = new soapserver(dirname(__FILE__)."/test.wsdl");
ob_start();
$server->handle();
$wsdl = ob_get_contents();
ob_end_clean();
if ($wsdl == file_get_contents(dirname(__FILE__)."/test.wsdl")) {
echo "ok\n";
} else {
echo "fail\n";
}
?>
--EXPECT--
ok