diff options
Diffstat (limited to 'ext/reflection/tests/ReflectionClass_export_array_bug72222.phpt')
-rw-r--r-- | ext/reflection/tests/ReflectionClass_export_array_bug72222.phpt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ext/reflection/tests/ReflectionClass_export_array_bug72222.phpt b/ext/reflection/tests/ReflectionClass_export_array_bug72222.phpt new file mode 100644 index 0000000000..e64dc97109 --- /dev/null +++ b/ext/reflection/tests/ReflectionClass_export_array_bug72222.phpt @@ -0,0 +1,31 @@ +--TEST-- +ReflectionClass::export() - array constants +--FILE-- +<?php +Class A { + const A = 8; + const B = ["a", "b"]; +} +ReflectionClass::export("A"); +?> +--EXPECTF-- +Class [ <user> class A ] { + @@ %s 2-5 + + - Constants [2] { + Constant [ integer A ] { 8 } + Constant [ array B ] { Array } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [0] { + } +} |