diff options
Diffstat (limited to 'tests/php/phpt/variables/022-HashMember-4.phpt')
-rw-r--r-- | tests/php/phpt/variables/022-HashMember-4.phpt | 37 |
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 |