mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
31 lines
444 B
PHP
Executable File
31 lines
444 B
PHP
Executable File
--TEST--
|
|
SOAP Server 27: setObject and getFunctions
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
class Foo {
|
|
|
|
function Foo() {
|
|
}
|
|
|
|
function test() {
|
|
return $this->str;
|
|
}
|
|
}
|
|
|
|
$foo = new Foo();
|
|
$server = new SoapServer(null,array('uri'=>"http://testuri.org"));
|
|
$server->setObject($foo);
|
|
var_dump($server->getfunctions());
|
|
echo "ok\n";
|
|
?>
|
|
--EXPECT--
|
|
array(2) {
|
|
[0]=>
|
|
string(3) "Foo"
|
|
[1]=>
|
|
string(4) "test"
|
|
}
|
|
ok
|