mirror of
https://github.com/php/php-src.git
synced 2024-12-16 13:26:19 +08:00
30 lines
424 B
PHP
30 lines
424 B
PHP
--TEST--
|
|
SOAP Server 8: setclass and getfunctions
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
class Foo {
|
|
|
|
function Foo() {
|
|
}
|
|
|
|
function test() {
|
|
return $this->str;
|
|
}
|
|
}
|
|
|
|
$server = new soapserver(null,array('uri'=>"http://testuri.org"));
|
|
$server->setclass("Foo");
|
|
var_dump($server->getfunctions());
|
|
echo "ok\n";
|
|
?>
|
|
--EXPECT--
|
|
array(2) {
|
|
[0]=>
|
|
string(3) "Foo"
|
|
[1]=>
|
|
string(4) "test"
|
|
}
|
|
ok
|