--TEST-- Test stristr() function : usage variations - test values for $needle argument --FILE-- getMessage(), "\n"; } $count ++; } fclose($file_handle); //closing the file handle ?> ===DONE=== --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() expects parameter 2 to be string, array given -- Iteration 9 -- stristr() expects parameter 2 to be string, array given -- Iteration 10 -- stristr() expects parameter 2 to be 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 -- string(11) "Hello World" -- Iteration 16 -- string(11) "Hello World" -- Iteration 17 -- bool(false) -- Iteration 18 -- stristr() expects parameter 2 to be string, resource given -- Iteration 19 -- string(11) "Hello World" -- Iteration 20 -- string(11) "Hello World" ===DONE===