diff options
author | valmat <ufabiz@gmail.com> | 2014-04-05 22:00:55 +0600 |
---|---|---|
committer | valmat <ufabiz@gmail.com> | 2014-04-05 22:00:55 +0600 |
commit | 61374e5ddd285f9a125a52005ad7eaefd3585f02 (patch) | |
tree | 6e4388f8a2ee419d14fb21e25777844db5805bde /tests/php/phpt/variables/021-HashMember-3.phpt | |
parent | ffdccb83d460791202bdb258dbb9106da877da3b (diff) |
add tests for HashMember
Diffstat (limited to 'tests/php/phpt/variables/021-HashMember-3.phpt')
-rw-r--r-- | tests/php/phpt/variables/021-HashMember-3.phpt | 27 |
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 |