xref: /php-src/ext/soap/tests/bugs/bug29830.phpt (revision 7f2f0c00)
1--TEST--
2Bug #29844 (SoapServer::setClass() should not export non-public methods)
3--EXTENSIONS--
4soap
5--FILE--
6<?php
7
8class hello_world {
9  public function hello($to) {
10    return 'Hello ' . $to;
11  }
12  private function bye($to) {
13    return 'Bye ' . $to;
14  }
15}
16
17$server = new SoapServer(NULL, array("uri"=>"test://"));
18$server->setClass('hello_world');
19$functions = $server->getFunctions();
20foreach($functions as $func) {
21  echo $func . "\n";
22}
23?>
24--EXPECT--
25hello
26