Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / nikic / php-parser / test / code / parser / expr / issetAndEmpty.test
index 3a43d0d42aef6627695dd9c67d38a50488539711..cd074b1a4b19825f8e67cc16762ec9e5a5ac3c86 100644 (file)
@@ -9,65 +9,75 @@ empty(foo());
 empty(array(1, 2, 3));
 -----
 array(
-    0: Expr_Isset(
-        vars: array(
-            0: Expr_Variable(
-                name: a
+    0: Stmt_Expression(
+        expr: Expr_Isset(
+            vars: array(
+                0: Expr_Variable(
+                    name: a
+                )
             )
         )
     )
-    1: Expr_Isset(
-        vars: array(
-            0: Expr_Variable(
-                name: a
-            )
-            1: Expr_Variable(
-                name: b
-            )
-            2: Expr_Variable(
-                name: c
+    1: Stmt_Expression(
+        expr: Expr_Isset(
+            vars: array(
+                0: Expr_Variable(
+                    name: a
+                )
+                1: Expr_Variable(
+                    name: b
+                )
+                2: Expr_Variable(
+                    name: c
+                )
             )
         )
     )
-    2: Expr_Empty(
-        expr: Expr_Variable(
-            name: a
+    2: Stmt_Expression(
+        expr: Expr_Empty(
+            expr: Expr_Variable(
+                name: a
+            )
         )
     )
-    3: Expr_Empty(
-        expr: Expr_FuncCall(
-            name: Name(
-                parts: array(
-                    0: foo
+    3: Stmt_Expression(
+        expr: Expr_Empty(
+            expr: Expr_FuncCall(
+                name: Name(
+                    parts: array(
+                        0: foo
+                    )
+                )
+                args: array(
                 )
-            )
-            args: array(
             )
         )
     )
-    4: Expr_Empty(
-        expr: Expr_Array(
-            items: array(
-                0: Expr_ArrayItem(
-                    key: null
-                    value: Scalar_LNumber(
-                        value: 1
+    4: Stmt_Expression(
+        expr: Expr_Empty(
+            expr: Expr_Array(
+                items: array(
+                    0: Expr_ArrayItem(
+                        key: null
+                        value: Scalar_LNumber(
+                            value: 1
+                        )
+                        byRef: false
                     )
-                    byRef: false
-                )
-                1: Expr_ArrayItem(
-                    key: null
-                    value: Scalar_LNumber(
-                        value: 2
+                    1: Expr_ArrayItem(
+                        key: null
+                        value: Scalar_LNumber(
+                            value: 2
+                        )
+                        byRef: false
                     )
-                    byRef: false
-                )
-                2: Expr_ArrayItem(
-                    key: null
-                    value: Scalar_LNumber(
-                        value: 3
+                    2: Expr_ArrayItem(
+                        key: null
+                        value: Scalar_LNumber(
+                            value: 3
+                        )
+                        byRef: false
                     )
-                    byRef: false
                 )
             )
         )