-
-
Notifications
You must be signed in to change notification settings - Fork 72
added FileMutator #348
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
added FileMutator #348
Conversation
c06cf16 to
3645807
Compare
This reverts commit "Christmas Gift 2013" 0dfe244.
milo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Nice start. I like the file:// "hack" :)
| if ($content === FALSE) { | ||
| return FALSE; | ||
| } else { | ||
| $this->handle = tmpfile(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It opens file in w+ mode, not sure it's important or not.
|
Should I write to php-internals mailing list suggestion to disallow this? |
|
Thats amazing feature. Can't wait. |
|
|
|
That's a bit premature, I do not like current API. |
|
Oh, sorry. I removed it from master. I misunderstood you on PoSobota. |
c7e8a12 to
df5e87f
Compare
82cddf2 to
d2c42ed
Compare
|
From my point this is ready to squash and merge. |
|
👍 |

This can be used mocking of final classes/members and also as foundation for #17