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

1.1       misho       1: --TEST--
                      2: Testing static call method using the original class name
                      3: --FILE--
                      4: <?php
                      5: 
                      6: class foo { 
                      7:        static public function msg() {
                      8:                print "hello\n";
                      9:        }
                     10: }
                     11: 
                     12: interface test { }
                     13: 
                     14: 
                     15: class_alias('foo', 'baz');
                     16: 
                     17: class bar extends baz { 
                     18:        public function __construct() {
                     19:                foo::msg();
                     20:        }       
                     21: }
                     22: 
                     23: new bar;
                     24: 
                     25: ?>
                     26: --EXPECT--
                     27: hello

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