summaryrefslogtreecommitdiff
path: root/Zend/tests/traits/bug63911.phpt
blob: ea2e8067faf153f898dceb2ca83a684e594824d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--TEST--
Bug #63911 (Ignore conflicting trait methods originationg from identical sub traits)
--FILE--
<?php
trait A
{
    public function a(){
        echo 'Done';
    }
}
trait B
{
    use A;
}
trait C
{
    use A;
}
class D
{
    use B, C;
}

(new D)->a();
?>
--EXPECT--
Done