blob: a28a1033a09bdd26743d38e17a366b4c16d12490 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--TEST--
Bug #60173 (Wrong error message on reflective trait instantiation)
--FILE--
<?php
trait foo { }
$rc = new ReflectionClass('foo');
$rc->newInstance();
--EXPECTF--
Fatal error: Cannot instantiate trait foo in %s on line %d
|