Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Adapter *Contents instead in File Node #80

Merged
merged 1 commit into from Apr 26, 2020
Merged

Use Adapter *Contents instead in File Node #80

merged 1 commit into from Apr 26, 2020

Conversation

ghost
Copy link

@ghost ghost commented Apr 26, 2020

This patch updates Node/File to use the methods on the AdapterInterface instead of open the file for reading or writing and buffer the stream.

Fixes #63.

@ghost
Copy link
Author

ghost commented Apr 26, 2020

@WyriHaximus Please restart the CI build. However the Directory Test failures are unrelated to this PR.

@WyriHaximus
Copy link
Member

@CharlotteDunois will kick them for a while, need to finish #78 to resolve this

@WyriHaximus WyriHaximus added this to the v0.2.0 milestone Apr 26, 2020
@WyriHaximus
Copy link
Member

@CharlotteDunois all failing tests look EIO related to me

Copy link
Member

@clue clue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM! Is (can) this also be covered by some functional tests?

@ghost
Copy link
Author

ghost commented Apr 26, 2020

@clue This is already covered by the Adapters/FileTest.php test suite. Unless you mean overwriting an existing file, that would need an additional test.

@WyriHaximus WyriHaximus merged commit 02d8953 into reactphp:master Apr 26, 2020
@ghost ghost deleted the file-node branch April 26, 2020 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

putContents doesn't truncate the file like file_put_contents
3 participants