Annotation of embedaddon/php/ext/soap/tests/server027.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: SOAP Server 27: setObject and getFunctions
                      3: --SKIPIF--
                      4: <?php require_once('skipif.inc'); ?>
                      5: --FILE--
                      6: <?php
                      7: class Foo {
                      8: 
                      9:   function Foo() {
                     10:   }
                     11: 
                     12:   function test() {
                     13:     return $this->str;
                     14:   }
                     15: }
                     16: 
                     17: $foo = new Foo();
                     18: $server = new SoapServer(null,array('uri'=>"http://testuri.org"));
                     19: $server->setObject($foo);
                     20: var_dump($server->getfunctions());
                     21: echo "ok\n";
                     22: ?>
                     23: --EXPECT--
                     24: array(2) {
                     25:   [0]=>
                     26:   string(3) "Foo"
                     27:   [1]=>
                     28:   string(4) "test"
                     29: }
                     30: ok

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