xref: /php-src/ext/soap/tests/server008.phpt (revision 7f2f0c00)
1--TEST--
2SOAP Server 8: setclass and getfunctions
3--EXTENSIONS--
4soap
5--FILE--
6<?php
7class Foo {
8
9  function __construct() {
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");
19var_dump($server->getfunctions());
20echo "ok\n";
21?>
22--EXPECT--
23array(2) {
24  [0]=>
25  string(11) "__construct"
26  [1]=>
27  string(4) "test"
28}
29ok
30