diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-29 13:35:42 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-29 13:35:42 +0100 |
commit | b21f7778fb106a425467c7ee5819e544ef0a2de8 (patch) | |
tree | 24e99c5f57f9228fd6633e9037782bf0d57a52d7 /tests/php/phpt/variables/002-get_complex_array.phpt | |
parent | 7b7efa4f80dc5c9d26b59087270a8d89fedcc808 (diff) |
activated all tests, and slightly modified one test which has wrong expected output in the test script
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..716fda9 --- /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 |