We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2b902a commit 3ada8ebCopy full SHA for 3ada8eb
src/Request.php
@@ -156,7 +156,7 @@ public function handleData($data)
156
157
$this->emit('response', array($response, $this));
158
159
- $response->emit('data', array($bodyChunk, $response));
+ $response->emit('data', array((string)$bodyChunk, $response));
160
}
161
162
tests/RequestTest.php
@@ -73,7 +73,7 @@ public function requestShouldBindToStreamEventsAndUseconnector()
73
74
$response->expects($this->once())
75
->method('emit')
76
- ->with('data', array('body', $response));
+ ->with('data', $this->identicalTo(array('body', $response)));
77
78
$response->expects($this->at(0))
79
->method('on')
0 commit comments