import zend standard tests
[hiphop-php.git] / hphp / test / zend / good / ext-standard-array / array_flip_error.php
blobecb4cd733999ef419fee1433bb75257d4518536e
1 <?php
2 /* Prototype : array array_flip(array $input)
3 * Description: Return array with key <-> value flipped
4 * Source code: ext/standard/array.c
5 */
7 echo "*** Testing array_flip() : error conditions ***\n";
9 // Zero arguments
10 echo "-- Testing array_flip() function with Zero arguments --\n";
11 var_dump( array_flip() );
13 //one more than the expected number of arguments
14 echo "-- Testing array_flip() function with more than expected no. of arguments --\n";
15 $input = array(1 => 'one', 2 => 'two');
16 $extra_arg = 10;
17 var_dump( array_flip($input, $extra_arg) );
19 echo "Done"