diff options
Diffstat (limited to 'Zend/tests/traits/error_007.phpt')
-rw-r--r-- | Zend/tests/traits/error_007.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Zend/tests/traits/error_007.phpt b/Zend/tests/traits/error_007.phpt new file mode 100644 index 0000000..82a6a2e --- /dev/null +++ b/Zend/tests/traits/error_007.phpt @@ -0,0 +1,13 @@ +--TEST-- +Trying to instantiate a trait +--FILE-- +<?php + +trait abc { +} + +new abc; + +?> +--EXPECTF-- +Fatal error: Cannot instantiate trait abc in %s on line %d |