call_static_003.phpt 569 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. --TEST--
  2. Testing method name case
  3. --FILE--
  4. <?php
  5. class Foo {
  6. public function __call($a, $b) {
  7. print "nonstatic\n";
  8. var_dump($a);
  9. }
  10. static public function __callStatic($a, $b) {
  11. print "static\n";
  12. var_dump($a);
  13. }
  14. public function test() {
  15. $this->fOoBaR();
  16. self::foOBAr();
  17. $this::fOOBAr();
  18. }
  19. }
  20. $a = new Foo;
  21. $a->test();
  22. $a::bAr();
  23. foo::BAZ();
  24. ?>
  25. --EXPECT--
  26. nonstatic
  27. string(6) "fOoBaR"
  28. nonstatic
  29. string(6) "foOBAr"
  30. nonstatic
  31. string(6) "fOOBAr"
  32. static
  33. string(3) "bAr"
  34. static
  35. string(3) "BAZ"