Annotation of embedaddon/php/Zend/tests/traits/methods_003.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Testing __construct and __destruct with Trait
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: trait foo {    
        !             7:        public function __construct() {
        !             8:                var_dump(__FUNCTION__);
        !             9:        }
        !            10:        public function __destruct() {
        !            11:                var_dump(__FUNCTION__);
        !            12:        }
        !            13: }
        !            14: 
        !            15: class bar {
        !            16:        use foo;
        !            17: }
        !            18: 
        !            19: new bar;
        !            20: 
        !            21: ?>
        !            22: --EXPECT--
        !            23: string(11) "__construct"
        !            24: string(10) "__destruct"

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