--TEST-- Test stristr() function : usage variations - test values for $needle argument --FILE-- getMessage(), "\n"; } $count ++; } fclose($file_handle); //closing the file handle ?> --EXPECT-- *** Testing stristr() function: with unexpected inputs for 'needle' argument *** -- Iteration 1 -- bool(false) -- Iteration 2 -- bool(false) -- Iteration 3 -- bool(false) -- Iteration 4 -- bool(false) -- Iteration 5 -- bool(false) -- Iteration 6 -- bool(false) -- Iteration 7 -- bool(false) -- Iteration 8 -- stristr(): Argument #2 ($needle) must be of type string, array given -- Iteration 9 -- stristr(): Argument #2 ($needle) must be of type string, array given -- Iteration 10 -- stristr(): Argument #2 ($needle) must be of type string, array given -- Iteration 11 -- bool(false) -- Iteration 12 -- string(11) "Hello World" -- Iteration 13 -- bool(false) -- Iteration 14 -- string(11) "Hello World" -- Iteration 15 -- bool(false) -- Iteration 16 -- stristr(): Argument #2 ($needle) must be of type string, resource given