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

1.1     ! misho       1: --TEST--
        !             2: Invalid conflict resolution (unused trait as rhs of "insteadof")
        !             3: --FILE--
        !             4: <?php
        !             5: trait T1 {
        !             6:        function foo() {echo "T1\n";}
        !             7: }
        !             8: trait T2 {
        !             9:         function foo() {echo "T2\n";}
        !            10: }
        !            11: class C {
        !            12:        use T1 {
        !            13:                T1::foo insteadof T2;
        !            14:        }
        !            15: }
        !            16: --EXPECTF--
        !            17: Fatal error: Required Trait T2 wasn't added to C in %slanguage016.php on line %d

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