diff options
Diffstat (limited to 'tests/classes/constants_error_002.phpt')
-rw-r--r-- | tests/classes/constants_error_002.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/classes/constants_error_002.phpt b/tests/classes/constants_error_002.phpt new file mode 100644 index 0000000..be27971 --- /dev/null +++ b/tests/classes/constants_error_002.phpt @@ -0,0 +1,12 @@ +--TEST-- +Error case: class constant as an array +--FILE-- +<?php + class myclass + { + const myConst = array(); + } +?> +--EXPECTF-- + +Fatal error: Arrays are not allowed in class constants in %s on line 4 |