diff --git a/ext/reflection/tests/gh15902/ReflectionClass-dots.phpt b/ext/reflection/tests/gh15902/ReflectionClass-dots.phpt new file mode 100644 index 0000000000000..1c4a2346a1b1c --- /dev/null +++ b/ext/reflection/tests/gh15902/ReflectionClass-dots.phpt @@ -0,0 +1,39 @@ +--TEST-- +ReflectionClass object default property - used to say "..." +--FILE-- +newLazyGhost(function () {}); + +define('FOO', new stdClass); + +$c->a; + +var_dump( (string)$reflector ); + +?> +--EXPECTF-- +string(%d) "Class [ class C ] { + @@ %sReflectionClass-dots.php %d-%d + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [1] { + Property [ public stdClass $a = object(stdClass) ] + } + + - Methods [0] { + } +} +" diff --git a/ext/reflection/tests/gh15902/ReflectionProperty-dots.phpt b/ext/reflection/tests/gh15902/ReflectionProperty-dots.phpt new file mode 100644 index 0000000000000..a0997d07d33db --- /dev/null +++ b/ext/reflection/tests/gh15902/ReflectionProperty-dots.phpt @@ -0,0 +1,22 @@ +--TEST-- +ReflectionProperty object default - used to say "..." +--FILE-- +newLazyGhost(function () {}); + +define('FOO', new stdClass); + +$c->a; + +var_dump( (string)$reflector ); + +?> +--EXPECTF-- +string(%d) "Property [ public stdClass $a = object(stdClass) ] +"