1--TEST-- 2Test wrong number of arguments for min() 3--FILE-- 4<?php 5/* 6 * proto mixed min(mixed arg1 [, mixed arg2 [, mixed ...]]) 7 * Function is implemented in ext/standard/array.c 8*/ 9 10 11echo "\n*** Testing Error Conditions ***\n"; 12 13var_dump(min()); 14var_dump(min(1)); 15var_dump(min(array())); 16var_dump(min(new stdclass)); 17 18?> 19--EXPECTF-- 20*** Testing Error Conditions *** 21 22Warning: min() expects at least 1 parameter, 0 given in %s on line 10 23NULL 24 25Warning: min(): When only one parameter is given, it must be an array in %s on line 11 26NULL 27 28Warning: min(): Array must contain at least one element in %s on line 12 29bool(false) 30 31Warning: min(): When only one parameter is given, it must be an array in %s on line 13 32NULL 33