1--TEST--
2Traits are flattened recurivly.
3--FILE--
4<?php
5error_reporting(E_ALL);
6
7trait Hello {
8   public function sayHello() {
9     echo 'Hello ';
10   }
11}
12
13trait World {
14   public function sayWorld() {
15     echo 'World!';
16   }
17}
18
19trait HelloWorld {
20   use Hello, World;
21}
22
23class MyHelloWorld {
24   use HelloWorld;
25}
26
27$o = new MyHelloWorld();
28$o->sayHello();
29$o->sayWorld();
30?>
31--EXPECT--
32Hello World!
33