[Process] Adjust PR #11264, make it Windows compatible and fix CS
This commit is contained in:
parent
9e1ea4aa4b
commit
cec0a45ff5
@ -287,8 +287,15 @@ abstract class AbstractProcessTest extends \PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testZeroAsOutput(){
|
public function testZeroAsOutput()
|
||||||
$p = $this->getProcess('printf 0');
|
{
|
||||||
|
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
|
||||||
|
// see http://stackoverflow.com/questions/7105433/windows-batch-echo-without-new-line
|
||||||
|
$p = $this->getProcess('echo | set /p dummyName=0');
|
||||||
|
} else {
|
||||||
|
$p = $this->getProcess('printf 0');
|
||||||
|
}
|
||||||
|
|
||||||
$p->run();
|
$p->run();
|
||||||
$this->assertSame('0', $p->getOutput());
|
$this->assertSame('0', $p->getOutput());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user