Closed migueleliasweb closed 6 years ago
What if you're creating a new CSV file? Then, the file doesn't exist until the first writeRow()
call.
Yes this is the reason why it should not throw exception.
@Halama + @samwilson . I think I understand both of you. I'll update my repository and make the PR.
Here's the repository: (not yet updated) https://github.com/migueleliasweb/php-csv
I'll close this since new major version is released.
Hello everybody,
i'm about to make a PR to this lib. I found it awesome but it lacks (for me) some no-very-baisc functionalities.
After some changes I had to update some tests, BUT, this testInitInvalidFileShouldNotThrowException method makes me curious about it's assertion.
Why it should not throw an exception ? At CsvFile::_openFile() there's a file existance verification, so, for me, it seems very logic for it to thow the exception...
Ps: This is the one last method for the whole test suit to pass =D