import zend standard tests
[hiphop-php.git] / hphp / test / zend / good / ext-standard-array / array_reverse_error.php
blob20d5a7e92984ac55fa17906d910ef24c052e3303
1 <?php
2 /* Prototype : array array_reverse(array $array [, bool $preserve_keys])
3 * Description: Return input as a new array with the order of the entries reversed
4 * Source code: ext/standard/array.c
5 */
7 echo "*** Testing array_reverse() : error conditions ***\n";
9 // zero arguments
10 echo "\n-- Testing array_reverse() function with Zero arguments --\n";
11 var_dump( array_reverse() );
13 // more than the expected number of arguments
14 echo "\n-- Testing array_diff() function with more than expected no. of arguments --\n";
15 $array = array(1, 2, 3, 4, 5, 6);
16 $extra_arg = 10;
17 var_dump( array_reverse($array, true, $extra_arg) );
18 var_dump( array_reverse($array, false, $extra_arg) );
20 echo "Done";