--TEST-- Test file_get_contents() function : error conditions --CREDITS-- Dave Kelsey --FILE-- getMessage() . "\n"; } delete_files($file_path, 1, "file_get_contents_error", 1); fclose($file_handle); unlink($file_path."/file_put_contents_error.tmp"); echo "\n*** Done ***\n"; ?> --CLEAN-- --EXPECTF-- *** Testing error conditions *** -- Testing with Non-existing file -- Warning: file_get_contents(/no/such/file/or/dir): Failed to open stream: No such file or directory in %s on line %d -- Testing for invalid negative maxlen values -- file_get_contents(): Argument #5 ($length) must be greater than or equal to 0 *** Done ***