php-src/ext/soap/tests/server011.phpt
2008-01-09 16:46:06 +00:00

28 lines
438 B
PHP

--TEST--
SOAP Server 11: bind
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--GET--
wsdl
--INI--
soap.wsdl_cache_enabled=0
--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