Skip to content

Commit 2f6f4e5

Browse files
authored
Added log records about the exception message when emit failed. (#5287)
1 parent 1a07976 commit 2f6f4e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/SwooleStreamTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function testSwooleFileStream()
3535
$response = new Response();
3636
$response = $response->withBody(new SwooleFileStream($file));
3737

38-
$responseEmitter = new ResponseEmitter();
38+
$responseEmitter = new ResponseEmitter(null);
3939
$this->assertSame(null, $responseEmitter->emit($response, $swooleResponse, true));
4040
}
4141

@@ -50,7 +50,7 @@ public function testSwooleStream()
5050
$response = new Response();
5151
$response = $response->withBody(new SwooleStream($content))->withHeader('TOKEN', 'xxx');
5252

53-
$responseEmitter = new ResponseEmitter();
53+
$responseEmitter = new ResponseEmitter(null);
5454
$this->assertSame(null, $responseEmitter->emit($response, $swooleResponse, true));
5555
}
5656

0 commit comments

Comments
 (0)