1--TEST-- 2Test ctype_lower() function : error conditions - incorrect number of args 3--SKIPIF-- 4<?php require_once('skipif.inc'); ?> 5--FILE-- 6<?php 7/* Prototype : bool ctype_lower(mixed $c) 8 * Description: Checks for lowercase character(s) 9 * Source code: ext/ctype/ctype.c 10 */ 11 12/* 13 * Pass incorrect number of arguments to ctype_lower() to test behaviour 14 */ 15 16echo "*** Testing ctype_lower() : error conditions ***\n"; 17 18// Zero arguments 19echo "\n-- Testing ctype_lower() function with Zero arguments --\n"; 20var_dump( ctype_lower() ); 21 22//Test ctype_lower with one more than the expected number of arguments 23echo "\n-- Testing ctype_lower() function with more than expected no. of arguments --\n"; 24$c = 1; 25$extra_arg = 10; 26var_dump( ctype_lower($c, $extra_arg) ); 27?> 28===DONE=== 29--EXPECTF-- 30*** Testing ctype_lower() : error conditions *** 31 32-- Testing ctype_lower() function with Zero arguments -- 33 34Warning: ctype_lower() expects exactly 1 parameter, 0 given in %s on line %d 35NULL 36 37-- Testing ctype_lower() function with more than expected no. of arguments -- 38 39Warning: ctype_lower() expects exactly 1 parameter, 2 given in %s on line %d 40NULL 41===DONE=== 42