diff options
Diffstat (limited to 'Zend/tests/enum/no-constructors.phpt')
-rw-r--r-- | Zend/tests/enum/no-constructors.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/enum/no-constructors.phpt b/Zend/tests/enum/no-constructors.phpt new file mode 100644 index 0000000000..70504e14eb --- /dev/null +++ b/Zend/tests/enum/no-constructors.phpt @@ -0,0 +1,12 @@ +--TEST-- +Enum disallows constructor +--FILE-- +<?php + +enum Foo { + public function __construct() {} +} + +?> +--EXPECTF-- +Fatal error: Enum may not include __construct in %s on line %d |