Annotation of embedaddon/php/Zend/tests/lsb_004.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: ZE2 Late Static Binding testing get_called_class()
                      3: --FILE--
                      4: <?php
                      5: 
                      6: class TestClass {
                      7:        public static function getClassName() {
                      8:                return get_called_class();
                      9:        }
                     10: }
                     11: 
                     12: class ChildClass extends TestClass {}
                     13: 
                     14: echo TestClass::getClassName() . "\n";
                     15: echo ChildClass::getClassName() . "\n";
                     16: ?>
                     17: ==DONE==
                     18: --EXPECTF--
                     19: TestClass
                     20: ChildClass
                     21: ==DONE==

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