From 87e2a75f70ccc44c8b1e8ed320a51db6df714267 Mon Sep 17 00:00:00 2001 From: Josie Messa Date: Thu, 14 Feb 2008 16:15:16 +0000 Subject: [PATCH] - New variation test for array_values() --- .project | 11 ++++ .../tests/array/array_values_variation7.phpt | 55 +++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 .project create mode 100644 ext/standard/tests/array/array_values_variation7.phpt diff --git a/.project b/.project new file mode 100644 index 0000000000..d74bf09c82 --- /dev/null +++ b/.project @@ -0,0 +1,11 @@ + + + php-src_52 + + + + + + + + diff --git a/ext/standard/tests/array/array_values_variation7.phpt b/ext/standard/tests/array/array_values_variation7.phpt new file mode 100644 index 0000000000..b713064569 --- /dev/null +++ b/ext/standard/tests/array/array_values_variation7.phpt @@ -0,0 +1,55 @@ +--TEST-- +Test array_values() function : usage variations - Internal order check +--FILE-- + 'three', 2 => 'two', 1 => 'one', 0 => 'zero'); + +echo "\n-- \$input argument: --\n"; +var_dump($input); + +echo "\n-- Result of array_values() --\n"; +var_dump(array_values($input)); + +echo "Done"; +?> + +--EXPECTF-- +*** Testing array_values() : usage variations *** + +-- $input argument: -- +array(4) { + [3]=> + string(5) "three" + [2]=> + string(3) "two" + [1]=> + string(3) "one" + [0]=> + string(4) "zero" +} + +-- Result of array_values() -- +array(4) { + [0]=> + string(5) "three" + [1]=> + string(3) "two" + [2]=> + string(3) "one" + [3]=> + string(4) "zero" +} +Done \ No newline at end of file -- 2.50.1