Skip to content

Commit f578e2f

Browse files
authored
Merge pull request #12 from WyriHaximus-labs/support-react-stream-1.0-and-0.7
Support react/stream 1.0 and 0.7
2 parents d8749c8 + 6bd98ba commit f578e2f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
},
1616
"require": {
1717
"php": ">=5.3",
18-
"react/stream": "^0.6 || ^0.5 || ^0.4 || ^0.3"
18+
"react/stream": "^1.0 || ^0.7 || ^0.6 || ^0.5 || ^0.4 || ^0.3"
1919
},
2020
"require-dev": {
21-
"phpunit/phpunit": "^5.0 || ^4.8"
21+
"phpunit/phpunit": "^5.0 || ^4.8",
22+
"react/stream": "^1.0 || ^0.7"
2223
}
2324
}

tests/SequencerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
use React\Stream\ReadableStream;
43
use Clue\React\Utf8\Sequencer;
4+
use React\Stream\ThroughStream;
55

66
class SequencerTest extends TestCase
77
{
@@ -10,7 +10,7 @@ class SequencerTest extends TestCase
1010

1111
public function setUp()
1212
{
13-
$this->input = new ReadableStream();
13+
$this->input = new ThroughStream();
1414
$this->sequencer = new Sequencer($this->input);
1515
}
1616

0 commit comments

Comments
 (0)