public function testRewindsBody() { $body = Psr7\stream_for('abc'); $res = new Psr7\Response(200, [], $body); Psr7\rewind_body($res); $this->assertEquals(0, $body->tell()); $body->rewind(); Psr7\rewind_body($res); $this->assertEquals(0, $body->tell()); }