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