From 9fcfe52d03bc40cfce8306debe2e91d83a560683 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Thu, 27 Jul 2017 12:50:17 +0800 Subject: Fixed test --- ext/reflection/tests/bug69802.phpt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 ext/reflection/tests/bug69802.phpt (limited to 'ext') diff --git a/ext/reflection/tests/bug69802.phpt b/ext/reflection/tests/bug69802.phpt new file mode 100644 index 0000000000..e71ac1aa71 --- /dev/null +++ b/ext/reflection/tests/bug69802.phpt @@ -0,0 +1,27 @@ +--TEST-- +Bug #69802 (Reflection on Closure::__invoke borks type hint class name) +--FILE-- +getParameters()[0]->getName()); +var_dump($r->getParameters()[0]->getClass()); +echo $r->getParameters()[0], "\n"; +echo $r->getReturnType(),"\n"; +echo $r,"\n"; +?> +--EXPECT-- +string(1) "x" +object(ReflectionClass)#4 (1) { + ["name"]=> + string(8) "stdClass" +} +Parameter #0 [ stdClass $x ] +stdClass +Method [ public method __invoke ] { + + - Parameters [1] { + Parameter #0 [ stdClass $x ] + } + - Return [ stdClass ] +} -- cgit v1.2.1