Skip to content

Commit 404f8e2

Browse files
authored
Merge pull request #37 from WyriHaximus-labs/readable-stream-trait-emit-close
Missing method call mock for ReadableStreamTest::testReadChunk
2 parents c6cd311 + 5d4425e commit 404f8e2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/Stream/ReadableStreamTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace React\Tests\Filesystem\Stream;
44

55
use React\Filesystem\Stream\WritableStream;
6+
use React\Promise\FulfilledPromise;
67
use React\Promise\RejectedPromise;
78
use React\Tests\Filesystem\TestCase;
89

@@ -251,6 +252,13 @@ public function testReadChunk($className, $stat)
251252
->will($this->returnValue($readPromise))
252253
;
253254

255+
$filesystem
256+
->expects($this->at((int)!$stat + 3))
257+
->method('close')
258+
->with($fileDescriptor)
259+
->will($this->returnValue(new FulfilledPromise()))
260+
;
261+
254262
$mock = $this->getMock($className, [
255263
'isReadable',
256264
'emit',

0 commit comments

Comments
 (0)