summaryrefslogtreecommitdiff
path: root/tests/php/phpt/variables/021-HashMember-3.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/php/phpt/variables/021-HashMember-3.phpt')
-rw-r--r--tests/php/phpt/variables/021-HashMember-3.phpt27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/php/phpt/variables/021-HashMember-3.phpt b/tests/php/phpt/variables/021-HashMember-3.phpt
new file mode 100644
index 0000000..c6c517f
--- /dev/null
+++ b/tests/php/phpt/variables/021-HashMember-3.phpt
@@ -0,0 +1,27 @@
+--TEST--
+get_complex_array (test HashMember #3)
+--SKIPIF--
+<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
+--FILEEOF--
+<?php
+
+/*
+$r = array();
+$r["key1"] = array();
+$r["key1"]["key2"] = "val1-2";
+$r["key1"]["key3"] = "val1-3";
+var_export($r);echo "\n";
+*/
+
+var_export(TestVariables\test_HashMember_3());
+
+
+echo PHP_EOL;
+--EXPECT--
+array (
+ 'key1' =>
+ array (
+ 'key2' => 'val1-2',
+ 'key3' => 'val1-3',
+ ),
+) \ No newline at end of file