summaryrefslogtreecommitdiff
path: root/ext/soap/tests/bugs/bug29830.phpt
blob: adbbd7ffa551712d6f676c77561a7c4561620e57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
Bug #29844 (SoapServer::setClass() should not export non-public methods)
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php

class hello_world {
  public function hello($to) {
    return 'Hello ' . $to;
  }
  private function bye($to) {
    return 'Bye ' . $to;
  }
}

$server = new SoapServer(NULL, array("uri"=>"test://"));
$server->setClass('hello_world');
$functions = $server->getFunctions();
foreach($functions as $func) {
  echo $func . "\n";
}
?>
--EXPECT--
hello