forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Bug #60173 (Wrong error message on reflective trait instantiation)
- Loading branch information
Stefan Marr
committed
Oct 31, 2011
1 parent
c4eb5f2
commit 2e5d5e5
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters