summaryrefslogtreecommitdiff
path: root/tests/lang/array_shortcut_001.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/array_shortcut_001.phpt')
-rw-r--r--tests/lang/array_shortcut_001.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/lang/array_shortcut_001.phpt b/tests/lang/array_shortcut_001.phpt
new file mode 100644
index 0000000000..18a10ea09b
--- /dev/null
+++ b/tests/lang/array_shortcut_001.phpt
@@ -0,0 +1,13 @@
+--TEST--
+Square bracket array shortcut test
+--FILE--
+<?php
+print_r([1, 2, 3]);
+?>
+--EXPECT--
+Array
+(
+ [0] => 1
+ [1] => 2
+ [2] => 3
+)