summaryrefslogtreecommitdiff
path: root/Zend/tests/enum/no-destruct.phpt
blob: 730c29f8476c73429f59083f3d4765908f433bc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Enum disallows destructor
--FILE--
<?php

enum Foo {
    public function __destruct() {}
}

?>
--EXPECTF--
Fatal error: Enum may not include __destruct in %s on line %d