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