1--TEST-- 2Test ceil() - error conditions - incorrect number of args 3--FILE-- 4<?php 5/* Prototype : float ceil ( float $value ) 6 * Description: Round fractions up. 7 * Source code: ext/standard/math.c 8 */ 9 10echo "*** Testing ceil() : error conditions ***\n"; 11$arg_0 = 1.0; 12$extra_arg = 1; 13 14echo "\nToo many arguments\n"; 15var_dump(ceil($arg_0, $extra_arg)); 16 17echo "\nToo few arguments\n"; 18var_dump(ceil()); 19?> 20===Done=== 21--EXPECTF-- 22*** Testing ceil() : error conditions *** 23 24Too many arguments 25 26Warning: ceil() expects exactly 1 parameter, 2 given in %s on line %d 27NULL 28 29Too few arguments 30 31Warning: ceil() expects exactly 1 parameter, 0 given in %s on line %d 32NULL 33===Done=== 34