From 4b0f9586db3d74e5c3228311f4fece7f77ccb898 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 2 May 2016 11:42:06 +0200 Subject: Add missing update_constants in ReflectionClassConstant Also fix indentation of __toString(). --- .../tests/ReflectionClassConstant_getValue.phpt | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 ext/reflection/tests/ReflectionClassConstant_getValue.phpt (limited to 'ext/reflection/tests/ReflectionClassConstant_getValue.phpt') diff --git a/ext/reflection/tests/ReflectionClassConstant_getValue.phpt b/ext/reflection/tests/ReflectionClassConstant_getValue.phpt new file mode 100644 index 0000000000..e447d15357 --- /dev/null +++ b/ext/reflection/tests/ReflectionClassConstant_getValue.phpt @@ -0,0 +1,47 @@ +--TEST-- +Test variations of getting constant values +--FILE-- +getValue()); +echo new ReflectionClassConstant('B', 'X'); +echo new ReflectionClass('C'); + +?> +--EXPECTF-- +int(2) +Constant [ public integer X ] { 2 } +Class [ class C ] { + @@ %s 12-15 + + - Constants [2] { + Constant [ public integer X ] { 2 } + Constant [ public integer Y ] { 1 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [0] { + } +} -- cgit v1.2.1