diff options
Diffstat (limited to 'tests/classes/constants_error_001.phpt')
-rw-r--r-- | tests/classes/constants_error_001.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/classes/constants_error_001.phpt b/tests/classes/constants_error_001.phpt new file mode 100644 index 0000000..9bb5533 --- /dev/null +++ b/tests/classes/constants_error_001.phpt @@ -0,0 +1,13 @@ +--TEST-- +Error case: duplicate class constant definition +--FILE-- +<?php + class myclass + { + const myConst = "hello"; + const myConst = "hello again"; + } +?> +--EXPECTF-- + +Fatal error: Cannot redefine class constant myclass::myConst in %s on line 5 |