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

1.1     ! misho       1: --TEST--
        !             2: Two methods resulting in a conflict, should be reported both.
        !             3: --FILE--
        !             4: <?php
        !             5: error_reporting(E_ALL);
        !             6: 
        !             7: trait A {
        !             8:    public function smallTalk() {
        !             9:      echo 'a';
        !            10:    }
        !            11:    public function bigTalk() {
        !            12:      echo 'A';
        !            13:    }
        !            14: }
        !            15: 
        !            16: trait B {
        !            17:    public function smallTalk() {
        !            18:      echo 'b';
        !            19:    }
        !            20:    public function bigTalk() {
        !            21:      echo 'B';
        !            22:    }
        !            23: }
        !            24: 
        !            25: class Talker {
        !            26:    use A, B;
        !            27: }
        !            28: 
        !            29: ?>
        !            30: --EXPECTF--    
        !            31: Fatal error: Trait method smallTalk has not been applied, because there are collisions with other trait methods on Talker in %s on line %d

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