2004-01-05 16:44:01 +00:00
|
|
|
--TEST--
|
|
|
|
SOAP Server 8: setclass and getfunctions
|
|
|
|
--SKIPIF--
|
|
|
|
<?php require_once('skipif.inc'); ?>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
class Foo {
|
|
|
|
|
|
|
|
function Foo() {
|
|
|
|
}
|
|
|
|
|
|
|
|
function test() {
|
|
|
|
return $this->str;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-02-05 20:26:05 +00:00
|
|
|
$server = new soapserver(null,array('uri'=>"http://testuri.org"));
|
2004-01-05 16:44:01 +00:00
|
|
|
$server->setclass("Foo");
|
|
|
|
var_dump($server->getfunctions());
|
|
|
|
echo "ok\n";
|
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
array(2) {
|
|
|
|
[0]=>
|
|
|
|
string(3) "Foo"
|
|
|
|
[1]=>
|
|
|
|
string(4) "test"
|
|
|
|
}
|
|
|
|
ok
|
2006-07-13 16:47:26 +00:00
|
|
|
--UEXPECT--
|
|
|
|
array(2) {
|
|
|
|
[0]=>
|
|
|
|
unicode(3) "Foo"
|
|
|
|
[1]=>
|
|
|
|
unicode(4) "test"
|
|
|
|
}
|
|
|
|
ok
|