Annotation of embedaddon/php/ext/soap/tests/server007.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: SOAP Server 7: addfunction and getfunctions
        !             3: --SKIPIF--
        !             4: <?php require_once('skipif.inc'); ?>
        !             5: --FILE--
        !             6: <?php
        !             7: function Add($x,$y) {
        !             8:   return $x+$y;
        !             9: }
        !            10: function Sub($x,$y) {
        !            11:   return $x-$y;
        !            12: }
        !            13: 
        !            14: $server = new soapserver(null,array('uri'=>"http://testuri.org"));
        !            15: $server->addfunction(array("Sub","Add"));
        !            16: var_dump($server->getfunctions());
        !            17: echo "ok\n";
        !            18: ?>
        !            19: --EXPECT--
        !            20: array(2) {
        !            21:   [0]=>
        !            22:   string(3) "Sub"
        !            23:   [1]=>
        !            24:   string(3) "Add"
        !            25: }
        !            26: ok

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>