Security update for Core, with self-updated composer
[yaffs-website] / vendor / nikic / php-parser / test / code / parser / expr / uvs / staticProperty.test
diff --git a/vendor/nikic/php-parser/test/code/parser/expr/uvs/staticProperty.test b/vendor/nikic/php-parser/test/code/parser/expr/uvs/staticProperty.test
new file mode 100644 (file)
index 0000000..5fadfc4
--- /dev/null
@@ -0,0 +1,93 @@
+UVS static access
+-----
+<?php
+A::$b;
+$A::$b;
+'A'::$b;
+('A' . '')::$b;
+'A'[0]::$b;
+A::$$b;
+A::$$c[1];
+A::$A::$b;
+-----
+!!php7
+array(
+    0: Expr_StaticPropertyFetch(
+        class: Name(
+            parts: array(
+                0: A
+            )
+        )
+        name: b
+    )
+    1: Expr_StaticPropertyFetch(
+        class: Expr_Variable(
+            name: A
+        )
+        name: b
+    )
+    2: Expr_StaticPropertyFetch(
+        class: Scalar_String(
+            value: A
+        )
+        name: b
+    )
+    3: Expr_StaticPropertyFetch(
+        class: Expr_BinaryOp_Concat(
+            left: Scalar_String(
+                value: A
+            )
+            right: Scalar_String(
+                value:
+            )
+        )
+        name: b
+    )
+    4: Expr_StaticPropertyFetch(
+        class: Expr_ArrayDimFetch(
+            var: Scalar_String(
+                value: A
+            )
+            dim: Scalar_LNumber(
+                value: 0
+            )
+        )
+        name: b
+    )
+    5: Expr_StaticPropertyFetch(
+        class: Name(
+            parts: array(
+                0: A
+            )
+        )
+        name: Expr_Variable(
+            name: b
+        )
+    )
+    6: Expr_ArrayDimFetch(
+        var: Expr_StaticPropertyFetch(
+            class: Name(
+                parts: array(
+                    0: A
+                )
+            )
+            name: Expr_Variable(
+                name: c
+            )
+        )
+        dim: Scalar_LNumber(
+            value: 1
+        )
+    )
+    7: Expr_StaticPropertyFetch(
+        class: Expr_StaticPropertyFetch(
+            class: Name(
+                parts: array(
+                    0: A
+                )
+            )
+            name: A
+        )
+        name: b
+    )
+)