diff options
Diffstat (limited to 'tests/php/phpt/variables/002-get_complex_array.phpt-')
-rw-r--r-- | tests/php/phpt/variables/002-get_complex_array.phpt- | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/php/phpt/variables/002-get_complex_array.phpt- b/tests/php/phpt/variables/002-get_complex_array.phpt- new file mode 100644 index 0000000..f13afa6 --- /dev/null +++ b/tests/php/phpt/variables/002-get_complex_array.phpt- @@ -0,0 +1,33 @@ +--TEST-- +get_complex_array +--SKIPIF-- +<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?> +--FILEEOF-- +<?php + +/* +function get_complex_array() +{ + return array( + "a" => 123, + "b" => 456, + "c" => array("nested_value","example",7) + ); +} +var_export(get_complex_array()); +*/ +var_export(TestVariables\get_complex_array()); + + +echo PHP_EOL; +--EXPECT-- +array ( + 'a' => 123, + 'b' => 456, + 'c' => + array ( + 0 => 'nested_value', + 1 => 'example', + 2 => 7, + ), +)
\ No newline at end of file |