Annotation of embedaddon/php/Zend/tests/025.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Testing dynamic calls
! 3: --FILE--
! 4: <?php
! 5:
! 6: class foo {
! 7: static public function a() {
! 8: print "ok\n";
! 9: }
! 10: }
! 11:
! 12: $a = 'a';
! 13: $b = 'a';
! 14:
! 15: $class = 'foo';
! 16:
! 17: foo::a();
! 18: foo::$a();
! 19: foo::$$b();
! 20:
! 21: $class::a();
! 22: $class::$a();
! 23: $class::$$b();
! 24:
! 25: ?>
! 26: --EXPECT--
! 27: ok
! 28: ok
! 29: ok
! 30: ok
! 31: ok
! 32: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>