blob: 676aa56c44fb19ee6a8e07a219603f96e44e2b63 (
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
26
|
--TEST--
SOAP Server 7: addfunction and getfunctions
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
function Add($x,$y) {
return $x+$y;
}
function Sub($x,$y) {
return $x-$y;
}
$server = new soapserver(null,array('uri'=>"http://testuri.org"));
$server->addfunction(array("Sub","Add"));
var_dump($server->getfunctions());
echo "ok\n";
?>
--EXPECT--
array(2) {
[0]=>
string(3) "Sub"
[1]=>
string(3) "Add"
}
ok
|