Lines Matching refs:wordwrap
2 Test wordwrap() function : error conditions
5 /* Prototype : string wordwrap ( string $str [, int $width [, string $break [, bool $cut]]] )
10 echo "*** Testing wordwrap() : error conditions ***\n";
13 echo "\n-- Testing wordwrap() function with Zero arguments --\n";
14 var_dump( wordwrap() );
17 echo "\n-- Testing wordwrap() function with more than expected no. of arguments --\n";
18 $str = 'testing wordwrap function';
24 var_dump( wordwrap($str, $width, $break, $cut, $extra_arg) );
27 echo "\n-- Testing wordwrap() function with negative/zero value for width argument --\n";
32 var_dump( wordwrap($str, $width, $break, $cut) );
38 var_dump( wordwrap($str, $width, $break, $cut) );
44 var_dump( wordwrap($str, $width, $break, $cut) );
50 var_dump( wordwrap($str, $width, $break, $cut) );
55 *** Testing wordwrap() : error conditions ***
57 -- Testing wordwrap() function with Zero arguments --
59 Warning: wordwrap() expects at least 1 parameter, 0 given in %s on line %d
62 -- Testing wordwrap() function with more than expected no. of arguments --
64 Warning: wordwrap() expects at most 4 parameters, 5 given in %s on line %d
67 -- Testing wordwrap() function with negative/zero value for width argument --
72 Warning: wordwrap(): Can't force cut when width is zero in %s on line %d