--TEST-- Test fopen, fclose() & feof() functions: error conditions --CREDITS-- Dave Kelsey --FILE-- --EXPECTF-- *** Testing error conditions for fopen(), fclsoe() & feof() *** Warning: fopen() expects at least 2 parameters, 1 given in %s on line %d bool(false) Warning: fopen() expects at least 2 parameters, 0 given in %s on line %d bool(false) Warning: fclose(): supplied resource is not a valid stream resource in %s on line %d bool(false) Warning: fclose() expects parameter 1 to be resource, string given in %s on line %d bool(false) Warning: fclose() expects exactly 1 parameter, 0 given in %s on line %d bool(false) Warning: feof(): supplied resource is not a valid stream resource in %s on line %d bool(false) Warning: feof() expects parameter 1 to be resource, string given in %s on line %d bool(false) Warning: feof() expects exactly 1 parameter, 0 given in %s on line %d bool(false) Warning: fopen() expects at most 4 parameters, 5 given in %s on line %d bool(false) Warning: fclose() expects exactly 1 parameter, 2 given in %s on line %d bool(false) Warning: feof() expects exactly 1 parameter, 2 given in %s on line %d bool(false) -- Testing fopen(), fclose() & feof() with invalid arguments -- -- Iteration 1 -- Warning: fopen(string): failed to open stream: No such file or directory in %s on line %d bool(false) Warning: fclose() expects parameter 1 to be resource, string given in %s on line %d bool(false) Warning: feof() expects parameter 1 to be resource, string given in %s on line %d bool(false) -- Iteration 2 -- Warning: fopen(10): failed to open stream: No such file or directory in %s on line %d bool(false) Warning: fclose() expects parameter 1 to be resource, int given in %s on line %d bool(false) Warning: feof() expects parameter 1 to be resource, int given in %s on line %d bool(false) -- Iteration 3 -- Warning: fopen(10.5): failed to open stream: No such file or directory in %s on line %d bool(false) Warning: fclose() expects parameter 1 to be resource, float given in %s on line %d bool(false) Warning: feof() expects parameter 1 to be resource, float given in %s on line %d bool(false) -- Iteration 4 -- Warning: fopen(1): failed to open stream: No such file or directory in %s on line %d bool(false) Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d bool(false) Warning: feof() expects parameter 1 to be resource, bool given in %s on line %d bool(false) -- Iteration 5 -- Warning: fopen() expects parameter 1 to be a valid path, array given in %s on line %d bool(false) Warning: fclose() expects parameter 1 to be resource, array given in %s on line %d bool(false) Warning: feof() expects parameter 1 to be resource, array given in %s on line %d bool(false) -- Iteration 6 -- Warning: fopen() expects parameter 1 to be a valid path, object given in %s on line %d bool(false) Warning: fclose() expects parameter 1 to be resource, object given in %s on line %d bool(false) Warning: feof() expects parameter 1 to be resource, object given in %s on line %d bool(false) -- Iteration 7 -- Warning: fopen(): Filename cannot be empty in %s on line %d bool(false) Warning: fclose() expects parameter 1 to be resource, null given in %s on line %d bool(false) Warning: feof() expects parameter 1 to be resource, null given in %s on line %d bool(false) -- Iteration 8 -- Warning: fopen(): Filename cannot be empty in %s on line %d bool(false) Warning: fclose() expects parameter 1 to be resource, string given in %s on line %d bool(false) Warning: feof() expects parameter 1 to be resource, string given in %s on line %d bool(false)