1--TEST--
2Trait method overwritten by a method defined in the class.
3--FILE--
4<?php
5error_reporting(E_ALL);
6
7trait HelloWorld {
8   public function sayHello() {
9     echo 'Hello World!';
10   }
11}
12
13class TheWorldIsNotEnough {
14   use HelloWorld;
15   public function sayHello() {
16     echo 'Hello Universe!';
17   }
18}
19
20$o = new TheWorldIsNotEnough();
21$o->sayHello(); // echos Hello Universe!
22?>
23--EXPECT--
24Hello Universe!
25