xref: /PHP-8.0/ext/soap/tests/server008.phpt (revision 6ef92162)
1--TEST--
2SOAP Server 8: setclass and getfunctions
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
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