1--TEST-- 2Abstract Trait Methods should behave like common abstract methods. 3--FILE-- 4<?php 5error_reporting(E_ALL); 6 7trait THello { 8 public abstract function hello(); 9} 10 11class TraitsTest { 12 use THello; 13 public function hello() { 14 echo 'Hello'; 15 } 16} 17 18$test = new TraitsTest(); 19$test->hello(); 20?> 21--EXPECT-- 22Hello 23