summaryrefslogtreecommitdiff
path: root/tests/php/phpt/variables/022-HashMember-4.phpt
diff options
context:
space:
mode:
authorvalmat <ufabiz@gmail.com>2014-04-05 22:00:55 +0600
committervalmat <ufabiz@gmail.com>2014-04-05 22:00:55 +0600
commit61374e5ddd285f9a125a52005ad7eaefd3585f02 (patch)
tree6e4388f8a2ee419d14fb21e25777844db5805bde /tests/php/phpt/variables/022-HashMember-4.phpt
parentffdccb83d460791202bdb258dbb9106da877da3b (diff)
add tests for HashMember
Diffstat (limited to 'tests/php/phpt/variables/022-HashMember-4.phpt')
-rw-r--r--tests/php/phpt/variables/022-HashMember-4.phpt37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/php/phpt/variables/022-HashMember-4.phpt b/tests/php/phpt/variables/022-HashMember-4.phpt
new file mode 100644
index 0000000..cbdc8b0
--- /dev/null
+++ b/tests/php/phpt/variables/022-HashMember-4.phpt
@@ -0,0 +1,37 @@
+--TEST--
+get_complex_array (test HashMember #4)
+--SKIPIF--
+<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
+--FILEEOF--
+<?php
+
+var_export(TestVariables\test_HashMember_4());
+
+
+echo PHP_EOL;
+--EXPECT--
+array (
+ 0 =>
+ array (
+ 'key1' =>
+ array (
+ 'key2' =>
+ array (
+ 'key3' => 'val',
+ ),
+ ),
+ ),
+ 1 =>
+ array (
+ 'str1' => 'example',
+ 'str2' => 'example',
+ ),
+ 2 =>
+ array (
+ 'str1' =>
+ array (
+ 'str2' => 'val1-2',
+ 'str3' => 'val1-3',
+ ),
+ ),
+) \ No newline at end of file