From 1849546ada5dff9d1de14c3834cfb2176f52a3b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A1rcio=20Almada?= Date: Mon, 9 Feb 2015 13:10:33 -0300 Subject: [PATCH] add missing test for class member access with deference relates to https://wiki.php.net/rfc/uniform_variable_syntax --- .../varSyntax/constClassMemberAccess.phpt | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Zend/tests/varSyntax/constClassMemberAccess.phpt diff --git a/Zend/tests/varSyntax/constClassMemberAccess.phpt b/Zend/tests/varSyntax/constClassMemberAccess.phpt new file mode 100644 index 0000000000..41d871abb3 --- /dev/null +++ b/Zend/tests/varSyntax/constClassMemberAccess.phpt @@ -0,0 +1,27 @@ +--TEST-- +Const class member access with deference +--FILE-- + ['b' => 'c']]; +} + +var_dump(A::A); +var_dump(A::A['a']); +var_dump(A::A['a']['b']); + +?> +--EXPECT-- +array(1) { + ["a"]=> + array(1) { + ["b"]=> + string(1) "c" + } +} +array(1) { + ["b"]=> + string(1) "c" +} +string(1) "c" \ No newline at end of file -- 2.50.1