diff options
Diffstat (limited to 'tests/classes/constants_error_004.phpt')
-rw-r--r-- | tests/classes/constants_error_004.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/classes/constants_error_004.phpt b/tests/classes/constants_error_004.phpt new file mode 100644 index 0000000..03e6725 --- /dev/null +++ b/tests/classes/constants_error_004.phpt @@ -0,0 +1,13 @@ +--TEST-- +Class constant whose initial value refereces a non-existent class +--FILE-- +<?php + class C + { + const c1 = D::hello; + } + + $a = new C(); +?> +--EXPECTF-- +Fatal error: Class 'D' not found in %s on line %d |