1--TEST-- 2Test array_push() function : error conditions - Pass incorrect number of args 3--FILE-- 4<?php 5/* Prototype : int array_push(array $stack[, mixed $...]) 6 * Description: Pushes elements onto the end of the array 7 * Source code: ext/standard/array.c 8 */ 9 10/* 11 * Pass incorrect number of arguments to array_push() to test behaviour 12 */ 13 14echo "*** Testing array_push() : error conditions ***\n"; 15 16// Testing array_push with one less than the expected number of arguments 17echo "\n-- Testing array_push() function with less than expected no. of arguments --\n"; 18var_dump( array_push() ); 19 20echo "Done"; 21?> 22--EXPECTF-- 23*** Testing array_push() : error conditions *** 24 25-- Testing array_push() function with less than expected no. of arguments -- 26 27Warning: array_push() expects at least 1 parameter, 0 given in %s on line %d 28NULL 29Done 30