Annotation of embedaddon/php/Zend/tests/traits/bugs/alias-semantics02.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Semantic of alias operation is to provide an additional identifier for the
        !             3: method body of the original method.
        !             4: It should also work incase the method is fully qualified.
        !             5: --FILE--
        !             6: <?php
        !             7: error_reporting(E_ALL);
        !             8: 
        !             9: trait THello {
        !            10:   public function a() {
        !            11:     echo 'A';
        !            12:   }
        !            13: }
        !            14: 
        !            15: class TraitsTest {
        !            16:        use THello { THello::a as b; }
        !            17: }
        !            18: 
        !            19: $test = new TraitsTest();
        !            20: $test->a();
        !            21: $test->b();
        !            22: 
        !            23: ?>
        !            24: --EXPECTF--    
        !            25: AA

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