8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e1ea4a commit cec0a45Copy full SHA for cec0a45
src/Symfony/Component/Process/Tests/AbstractProcessTest.php
@@ -287,8 +287,15 @@ public function testGetIncrementalOutput()
287
}
288
289
290
- public function testZeroAsOutput(){
291
- $p = $this->getProcess('printf 0');
+ public function testZeroAsOutput()
+ {
292
+ if (defined('PHP_WINDOWS_VERSION_BUILD')) {
293
+ // see http://stackoverflow.com/questions/7105433/windows-batch-echo-without-new-line
294
+ $p = $this->getProcess('echo | set /p dummyName=0');
295
+ } else {
296
+ $p = $this->getProcess('printf 0');
297
+ }
298
+
299
$p->run();
300
$this->assertSame('0', $p->getOutput());
301
0 commit comments