1--TEST-- 2ReflectionEnumUnitCase::getEnum() 3--FILE-- 4<?php 5 6enum Foo { 7 case Bar; 8} 9 10echo (new ReflectionEnumUnitCase(Foo::class, 'Bar'))->getEnum(); 11 12?> 13--EXPECTF-- 14Class [ <user> final class Foo implements UnitEnum ] { 15 @@ %sReflectionEnumUnitCase_getEnum.php 3-5 16 17 - Constants [1] { 18 Constant [ public Foo Bar ] { Object } 19 } 20 21 - Static properties [0] { 22 } 23 24 - Static methods [1] { 25 Method [ <internal, prototype UnitEnum> static public method cases ] { 26 27 - Parameters [0] { 28 } 29 - Return [ array ] 30 } 31 } 32 33 - Properties [1] { 34 Property [ public readonly string $name ] 35 } 36 37 - Methods [0] { 38 } 39} 40