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

1.1     ! misho       1: --TEST--
        !             2: Bug #60145 (Usage of trait's use statement inside interfaces not properly checked.)
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: trait foo {
        !             7: 
        !             8: }
        !             9: 
        !            10: interface MyInterface {
        !            11:        use foo;
        !            12: 
        !            13:        public function b();
        !            14: 
        !            15: }
        !            16: --EXPECTF--
        !            17: Fatal error: Cannot use traits inside of interfaces. foo is used in MyInterface in %s on line %d

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