blob: 188b94f10ed4777774a3ba479d2678599e9db4cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--TEST--
SOAP Server 27: setObject and getFunctions
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
class Foo {
function __construct() {
}
function test() {
return $this->str;
}
}
$foo = new Foo();
$server = new SoapServer(null,array('uri'=>"http://testuri.org"));
$server->setObject($foo);
var_dump($server->getfunctions());
echo "ok\n";
?>
--EXPECT--
array(2) {
[0]=>
string(11) "__construct"
[1]=>
string(4) "test"
}
ok
|