1--TEST-- 2Bug #60173 (Wrong error message on reflective trait instantiation) 3--FILE-- 4<?php 5 6trait foo { } 7 8$rc = new ReflectionClass('foo'); 9$rc->newInstance(); 10?> 11--EXPECTF-- 12Fatal error: Uncaught Error: Cannot instantiate trait foo in %s:%d 13Stack trace: 14#0 %s(%d): ReflectionClass->newInstance() 15#1 {main} 16 thrown in %s on line %d 17