diff --git a/composer.json b/composer.json index 992b9df..3da822d 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ }, "require": { "php": ">=5.3", - "react/stream": "^0.4 || ^0.3" + "react/stream": "^0.6 || ^0.5 || ^0.4 || ^0.3" }, "require-dev": { "phpunit/phpunit": "^5.0 || ^4.8", diff --git a/tests/FunctionalControlCodeParserTest.php b/tests/FunctionalControlCodeParserTest.php index 83ed67c..1c52217 100644 --- a/tests/FunctionalControlCodeParserTest.php +++ b/tests/FunctionalControlCodeParserTest.php @@ -10,7 +10,7 @@ public function testPipingReadme() { $loop = Factory::create(); - $input = new Stream(fopen(__DIR__ . '/../README.md', 'r'), $loop); + $input = new Stream(fopen(__DIR__ . '/../README.md', 'r+'), $loop); $parser = new ControlCodeParser($input); $buffer = '';