server008.phpt 413 B

1234567891011121314151617181920212223242526272829
  1. --TEST--
  2. SOAP Server 8: setclass and getfunctions
  3. --EXTENSIONS--
  4. soap
  5. --FILE--
  6. <?php
  7. class Foo {
  8. function __construct() {
  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(11) "__construct"
  23. [1]=>
  24. string(4) "test"
  25. }
  26. ok