Lines Matching refs:basename
2 Test basename() function : error conditions
5 /* Prototype : string basename(string path [, string suffix])
11 echo "*** Testing basename() : error conditions ***\n";
14 echo "\n-- Testing basename() function with Zero arguments --\n";
15 var_dump( basename() );
17 //Test basename with one more than the expected number of arguments
18 echo "\n-- Testing basename() function with more than expected no. of arguments --\n";
22 var_dump( basename($path, $suffix, $extra_arg) );
27 *** Testing basename() : error conditions ***
29 -- Testing basename() function with Zero arguments --
31 Warning: basename() expects at least 1 parameter, 0 given in %s on line %d
34 -- Testing basename() function with more than expected no. of arguments --
36 Warning: basename() expects at most 2 parameters, 3 given in %s on line %d