From b9845e5006adb7a41d6fdf5d36fc3b5c129f8946 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Mon, 23 Nov 2015 18:48:21 +0800 Subject: [PATCH] Add bug #70957 and #70958 releated test in refection --- .../tests/ReflectionMethod_defaultArg.phpt | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 ext/reflection/tests/ReflectionMethod_defaultArg.phpt diff --git a/ext/reflection/tests/ReflectionMethod_defaultArg.phpt b/ext/reflection/tests/ReflectionMethod_defaultArg.phpt new file mode 100644 index 0000000000..1c04cade5f --- /dev/null +++ b/ext/reflection/tests/ReflectionMethod_defaultArg.phpt @@ -0,0 +1,44 @@ +--TEST-- +ReflectionMethod and RECV_INIT (bug #70957 and #70958) +--FILE-- + +--EXPECTF-- +Method [ private method bar ] { + @@ %s + + - Parameters [1] { + Parameter #0 [ $a = 'F' ] + } +} +Method [ private method bar ] { + @@ %s + + - Parameters [1] { + Parameter #0 [ $a = 'T' ] + } +} +Method [ private method bar ] { + @@ %s + + - Parameters [1] { + Parameter #0 [ $a = 'B' ] + } +} -- 2.40.0