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