public function testApiReadResponse_ThrowsException_WhenEOMIsNotFoundAndLengthLimitIsReached()
{
$text = 'Text';
$buffer = new Buffer($text);
$data = 'Data';
$reader = $this->createReader(['maxFrameSize' => 0]);
$parser = $this->createParser();
$parser->expects($this->never())->method('parseResponse');
$this->setExpectedException(ReadException::class);
$reader->readResponse($buffer, $data);
}