xref: /PHP-8.1/Zend/tests/enum/__isset.phpt (revision 269c8dac)
1--TEST--
2Enum __isset
3--FILE--
4<?php
5
6enum Foo {
7    case Bar;
8
9    public function __isset($property) {
10        return true;
11    }
12}
13
14?>
15--EXPECTF--
16Fatal error: Enum may not include __isset in %s on line %d
17