diff options
Diffstat (limited to 'Zend/tests/traits')
-rw-r--r-- | Zend/tests/traits/precedence_unknown_class.phpt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Zend/tests/traits/precedence_unknown_class.phpt b/Zend/tests/traits/precedence_unknown_class.phpt new file mode 100644 index 0000000000..212cba34e4 --- /dev/null +++ b/Zend/tests/traits/precedence_unknown_class.phpt @@ -0,0 +1,15 @@ +--TEST-- +Unknown class in absolute trait precedence reference +--FILE-- +<?php + +trait T {} +class C { + use T { + WrongClass::method insteadof C; + } +} + +?> +--EXPECTF-- +Fatal error: Could not find trait WrongClass in %s on line %d |