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

[Process] getIncrementalOutput should work without calling getOutput #18023

Merged
merged 1 commit into from Mar 17, 2016

Conversation

romainneutron
Copy link
Contributor

Q A
Branch 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #17937
License MIT

* @dataProvider provideVariousIncrementals
*/
public function testIncrementalOutputDoesNotRequiresAnotherCall($stream, $method) {
$process = new Process("php -r '\$n = 0; while (\$n < 3) { fwrite($stream, \$n, 1); \$n++; usleep(1000); }'", null, null, null, null);
Copy link
Member

Choose a reason for hiding this comment

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

please use self::$phpBin instead of php direclty as done elsewhere to enhance compatibility of tests with more runtimes

@romainneutron romainneutron force-pushed the fix-17937 branch 2 times, most recently from 38e4739 to 4bcfbc2 Compare March 5, 2016 16:19
@romainneutron
Copy link
Contributor Author

PR updated, comments addressed

@romainneutron
Copy link
Contributor Author

Arg, it fails on windows...

@@ -1166,6 +1166,31 @@ public function pipesCodeProvider()
}

/**
* @dataProvider provideVariousIncrementals
*/
public function testIncrementalOutputDoesNotRequiresAnotherCall($stream, $method) {
Copy link
Member

Choose a reason for hiding this comment

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

typo DoesNotRequire

@nicolas-grekas
Copy link
Member

👍

@xabbuh
Copy link
Member

xabbuh commented Mar 16, 2016

👍

@nicolas-grekas
Copy link
Member

Thank you @romainneutron.

@nicolas-grekas nicolas-grekas merged commit 37d8695 into symfony:2.7 Mar 17, 2016
nicolas-grekas added a commit that referenced this pull request Mar 17, 2016
… getOutput (romainneutron)

This PR was merged into the 2.7 branch.

Discussion
----------

[Process] getIncrementalOutput should work without calling getOutput

| Q             | A
| ------------- | ---
| Branch        | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #17937
| License       | MIT

Commits
-------

37d8695 [Process] getIncrementalOutput should work without calling getOutput
@romainneutron romainneutron deleted the fix-17937 branch March 17, 2016 09:00
*
* @param $caller The name of the method that needs fresh outputs
*
* @throw LogicException in case output has been disabled or process is not started
Copy link
Member

Choose a reason for hiding this comment

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

typo. Should be @throws

stof added a commit that referenced this pull request Mar 17, 2016
This PR was merged into the 2.7 branch.

Discussion
----------

[Process] fix docblock syntax

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #18023 (comment)
| License       | MIT
| Doc PR        |

Commits
-------

f909fca [Process] fix docblock syntax
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.

None yet

6 participants