Annotation of embedaddon/php/ext/soap/tests/server008.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SOAP Server 8: setclass and getfunctions
3: --SKIPIF--
4: <?php require_once('skipif.inc'); ?>
5: --FILE--
6: <?php
7: class Foo {
8:
9: function Foo() {
10: }
11:
12: function test() {
13: return $this->str;
14: }
15: }
16:
17: $server = new soapserver(null,array('uri'=>"http://testuri.org"));
18: $server->setclass("Foo");
19: var_dump($server->getfunctions());
20: echo "ok\n";
21: ?>
22: --EXPECT--
23: array(2) {
24: [0]=>
25: string(3) "Foo"
26: [1]=>
27: string(4) "test"
28: }
29: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>