1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/reflection/tests/ReflectionEnum_toString.phpt
Ilija Tovilo 8df557ac42 [RFC] Asymmetric visibility v2 (GH-15063)
Co-authored-by: Larry Garfield <larry@garfieldtech.com>
2024-08-27 02:04:48 +02:00

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] {
}
}