import zend standard tests
[hiphop-php.git] / hphp / test / zend / good / ext-standard-array / array_unshift_error.php
blobb96467e1680cafd2f3382e3225df791936405054
1 <?php
2 /* Prototype : int array_unshift(array $array, mixed $var [, mixed ...])
3 * Description: Pushes elements onto the beginning of the array
4 * Source code: ext/standard/array.c
5 */
7 echo "*** Testing array_unshift() : error conditions ***\n";
9 // Zero arguments
10 echo "\n-- Testing array_unshift() function with Zero arguments --\n";
11 var_dump( array_unshift() );
13 // Testing array_unshift with one less than the expected number of arguments
14 echo "\n-- Testing array_unshift() function with less than expected no. of arguments --\n";
15 $array = array(1, 2);
16 var_dump( array_unshift($array) );
17 echo "Done";