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

1.1       misho       1: --TEST--
                      2: Testing declaration of alias to 'static'
                      3: --FILE--
                      4: <?php
                      5: 
                      6: class bar {
                      7: }
                      8: 
                      9: class foo { 
                     10:        public function test() {
                     11:                class_alias('bar', 'static');
                     12:                return new static;
                     13:        }
                     14: }
                     15: 
                     16: $a = new foo;
                     17: var_dump($a->test());
                     18: 
                     19: ?>
                     20: --EXPECTF--
                     21: object(foo)#%d (0) {
                     22: }

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