diff options
Diffstat (limited to 'ext/reflection/tests/ReflectionEnum_toString.phpt')
-rw-r--r-- | ext/reflection/tests/ReflectionEnum_toString.phpt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/ext/reflection/tests/ReflectionEnum_toString.phpt b/ext/reflection/tests/ReflectionEnum_toString.phpt new file mode 100644 index 0000000000..567191e594 --- /dev/null +++ b/ext/reflection/tests/ReflectionEnum_toString.phpt @@ -0,0 +1,39 @@ +--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] { + } +} |