diff options
Diffstat (limited to 'Zend/tests/enum/final.phpt')
-rw-r--r-- | Zend/tests/enum/final.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/enum/final.phpt b/Zend/tests/enum/final.phpt new file mode 100644 index 0000000000..ca13b7da8c --- /dev/null +++ b/Zend/tests/enum/final.phpt @@ -0,0 +1,12 @@ +--TEST-- +Enum is final +--FILE-- +<?php + +enum Foo {} + +class Bar extends Foo {} + +?> +--EXPECTF-- +Fatal error: Class Bar may not inherit from final class (Foo) in %s on line %d |