2
Test function proc_nice() by substituting argument 1 with string values.
4
Italian PHP TestFest 2009 Cesena 19-20-21 june
5
Fabio Fabbrucci (fabbrucci@grupporetina.com)
6
Michele Orselli (mo@ideato.it)
7
Simone Gentili (sensorario@gmail.com)
12
echo "*** Test substituting argument 1 with string values ***\n";
20
$variation_array = array(
21
'string DQ' => "string",
22
'string SQ' => 'string',
23
'mixed case string' => "sTrInG",
24
'heredoc' => $heredoc,
28
foreach ( $variation_array as $var ) {
29
var_dump(proc_nice( $var ) );
33
*** Test substituting argument 1 with string values ***
35
Warning: proc_nice() expects parameter 1 to be long, string given in %s on line %d
38
Warning: proc_nice() expects parameter 1 to be long, string given in %s on line %d
41
Warning: proc_nice() expects parameter 1 to be long, string given in %s on line %d
44
Warning: proc_nice() expects parameter 1 to be long, string given in %s on line %d