bug29830.phpt 465 B

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