diff options
Diffstat (limited to 'Zend/tests/enum/no-enum-implements-unit-enum.phpt')
-rw-r--r-- | Zend/tests/enum/no-enum-implements-unit-enum.phpt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/tests/enum/no-enum-implements-unit-enum.phpt b/Zend/tests/enum/no-enum-implements-unit-enum.phpt new file mode 100644 index 0000000000..458efbb67c --- /dev/null +++ b/Zend/tests/enum/no-enum-implements-unit-enum.phpt @@ -0,0 +1,10 @@ +--TEST-- +Enum cannot manually implement UnitEnum +--FILE-- +<?php + +enum Foo implements UnitEnum {} + +?> +--EXPECTF-- +Fatal error: Class Foo cannot implement previously implemented interface UnitEnum in %s on line %d |