--TEST-- Test feof() function : basic functionality --CREDITS-- Dave Kelsey --FILE-- getMessage(), "\n"; } unlink($tmpFile1); unlink($tmpFile2); echo "Done"; ?> --EXPECT-- *** Testing feof() : basic functionality *** *** testing reading complete file using feof to stop *** some data 10 bool(false) *** writing 10 lines, testing feof *** bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) *** testing feof on unclosed file after a read *** bool(true) *** testing feof after a seek to near the beginning *** bool(false) *** testing feof after a seek to end *** bool(false) *** testing feof after a seek passed the end *** bool(false) *** closing file, testing eof *** feof(): supplied resource is not a valid stream resource Done