summaryrefslogtreecommitdiff
path: root/tests/lang/array_shortcut_005.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/array_shortcut_005.phpt')
-rw-r--r--tests/lang/array_shortcut_005.phpt20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/lang/array_shortcut_005.phpt b/tests/lang/array_shortcut_005.phpt
new file mode 100644
index 0000000..7cc7386
--- /dev/null
+++ b/tests/lang/array_shortcut_005.phpt
@@ -0,0 +1,20 @@
+--TEST--
+Testing nested array shortcut
+--FILE--
+<?php
+print_r([1, 2, 3, ["foo" => "orange", "bar" => "apple", "baz" => "lemon"]]);
+?>
+--EXPECT--
+Array
+(
+ [0] => 1
+ [1] => 2
+ [2] => 3
+ [3] => Array
+ (
+ [foo] => orange
+ [bar] => apple
+ [baz] => lemon
+ )
+
+)