-
Notifications
You must be signed in to change notification settings - Fork 304
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
test Task ReplaceInFile for multiple strings in file #128
test Task ReplaceInFile for multiple strings in file #128
Conversation
@@ -39,14 +39,19 @@ $this->taskReplaceInFile('config.yml') | |||
->regex('~^service:~') | |||
->to('services:') | |||
->run(); | |||
|
|||
$this->taskReplaceInFile('box/robo.txt') |
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.
please move this example to dockblock of the class.
this file is generated from it
de02255
to
16b3a75
Compare
Okay, moved the example to the php-file. Unfortunately I cannot re-generate the docs (all md files are emptied) |
@pscheit is there still any kind of issue with this? What exactly do you mean by
Is this broken for everyone now or just for you? I referenced the wrong PR in my commit by the way. :( |
According to @DavertMik it's OK to merge this, doing it now. |
Test Task ReplaceInFile for multiple strings in file
you are right. Whats the best way to fix? seperate PR? Or should I commit into this branch? I found the "bug" with the docs generation, my bad |
… regenerated docs
fix PR #128 document replaceInFile with better example
I noticed that the current implementation allows to supply an array of arguments for to and from, so that IO access to files can be minimized. I think this is a good feature, but I noticed that there is no test for that.
So I created a little test and a sentence in the documentation for this behaviour.
Best regards Philipp