xref: /PHP-8.1/Zend/tests/enum/no-destruct.phpt (revision 269c8dac)
1--TEST--
2Enum disallows destructor
3--FILE--
4<?php
5
6enum Foo {
7    public function __destruct() {}
8}
9
10?>
11--EXPECTF--
12Fatal error: Enum may not include __destruct in %s on line %d
13