xref: /PHP-8.4/ext/reflection/tests/bug81681.phpt (revision 59dd4fd7)
1--TEST--
2Bug #81681 (ReflectionEnum throwing exceptions)
3--FILE--
4<?php
5enum Status
6{
7    case Draft;
8    case Published;
9    case Archived;
10}
11
12$reflectionEnum = new \ReflectionEnum('\Status');
13var_dump($reflectionEnum->isInstantiable());
14var_dump($reflectionEnum->isCloneable());
15?>
16--EXPECT--
17bool(false)
18bool(false)
19