Files
php-src/ext/reflection/tests/ReflectionEnum_toString.phpt
2021-03-17 19:08:03 +01:00

40 lines
588 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 string $name ]
}
- Methods [0] {
}
}