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