xref: /PHP-8.2/Zend/tests/enum/__clone.phpt (revision 9b984f52)
1--TEST--
2Enum __clone
3--FILE--
4<?php
5
6enum Foo {
7    case Bar;
8
9    public function __clone() {
10    }
11}
12
13?>
14--EXPECTF--
15Fatal error: Enum Foo cannot include magic method __clone in %s on line %d
16