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