mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
40 lines
612 B
PHP
40 lines
612 B
PHP
--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 protected(set) readonly string $name ]
|
|
}
|
|
|
|
- Methods [0] {
|
|
}
|
|
}
|