diff options
Diffstat (limited to 'Zend/tests/traits/error_005.phpt')
-rw-r--r-- | Zend/tests/traits/error_005.phpt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Zend/tests/traits/error_005.phpt b/Zend/tests/traits/error_005.phpt new file mode 100644 index 0000000..5aa5e10 --- /dev/null +++ b/Zend/tests/traits/error_005.phpt @@ -0,0 +1,15 @@ +--TEST-- +Trying to use a final class as trait +--FILE-- +<?php + +final class abc { +} + +class A { + use abc; +} + +?> +--EXPECTF-- +Fatal error: A cannot use abc - it is not a trait in %s on line %d |