server008.phpt 424 B

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