Lines Matching refs:strval
2 Test strval() function : usage variations - error conditions
5 /* Prototype : string strval ( mixed $var )
10 echo "*** Testing strval() : error conditions ***\n";
22 //Test strval with one more than the expected number of arguments
23 echo "\n-- Testing strval() function with more than expected no. of arguments --\n";
24 var_dump( strval($string, $extra_arg) );
26 // Testing strval with one less than the expected number of arguments
27 echo "\n-- Testing strval() function with less than expected no. of arguments --\n";
28 var_dump( strval() );
30 // Testing strval with a object which has no toString() method
31 echo "\n-- Testing strval() function with object which has not toString() method --\n";
32 var_dump( strval(new MyClass()) );
37 *** Testing strval() : error conditions ***
39 -- Testing strval() function with more than expected no. of arguments --
41 Warning: strval() expects exactly 1 parameter, 2 given in %s on line %d
44 -- Testing strval() function with less than expected no. of arguments --
46 Warning: strval() expects exactly 1 parameter, 0 given in %s on line %d
49 -- Testing strval() function with object which has not toString() method --