composer update
This commit is contained in:
+7
-3
@@ -128,9 +128,9 @@ trait TesterTrait
|
||||
* * verbosity: Sets the output verbosity flag
|
||||
* * capture_stderr_separately: Make output of stdOut and stdErr separately available
|
||||
*/
|
||||
private function initOutput(array $options)
|
||||
private function initOutput(array $options): void
|
||||
{
|
||||
$this->captureStreamsIndependently = \array_key_exists('capture_stderr_separately', $options) && $options['capture_stderr_separately'];
|
||||
$this->captureStreamsIndependently = $options['capture_stderr_separately'] ?? false;
|
||||
if (!$this->captureStreamsIndependently) {
|
||||
$this->output = new StreamOutput(fopen('php://memory', 'w', false));
|
||||
if (isset($options['decorated'])) {
|
||||
@@ -168,7 +168,11 @@ trait TesterTrait
|
||||
$stream = fopen('php://memory', 'r+', false);
|
||||
|
||||
foreach ($inputs as $input) {
|
||||
fwrite($stream, $input.\PHP_EOL);
|
||||
fwrite($stream, $input);
|
||||
|
||||
if (!str_ends_with($input, "\x4")) {
|
||||
fwrite($stream, \PHP_EOL);
|
||||
}
|
||||
}
|
||||
|
||||
rewind($stream);
|
||||
|
||||
Reference in New Issue
Block a user