When the file size is zero, the call to SplFileObject::fread fails,
because it only accepts a size greater than zero.
This has been fixed by testing the size and optionally falling back to
an empty string.
The unit test has been expanded to prevent regression.
When the file size is zero, the call to
SplFileObject::fread
fails, because it only accepts a size greater than zero. This has been fixed by testing the size and optionally falling back to an empty string.The unit test has been expanded to prevent regression.
Fixes #15