123456789101112131415161718192021222324252627282930313233343536373839 |
- --TEST--
- ReflectionEnum::__toString()
- --FILE--
- <?php
- enum Foo {
- case Bar;
- }
- echo new ReflectionEnum(Foo::class);
- ?>
- --EXPECTF--
- Class [ <user> final class Foo implements UnitEnum ] {
- @@ %sReflectionEnum_toString.php 3-5
- - Constants [1] {
- Constant [ public Foo Bar ] { Object }
- }
- - Static properties [0] {
- }
- - Static methods [1] {
- Method [ <internal, prototype UnitEnum> static public method cases ] {
- - Parameters [0] {
- }
- - Return [ array ]
- }
- }
- - Properties [1] {
- Property [ public readonly string $name ]
- }
- - Methods [0] {
- }
- }
|