Kraken\_Unit\Network\Http\Driver\Reader\HttpReaderTest::testApiReadResponse_ThrowsException_WhenEOMIsNotFoundAndLengthLimitIsReached PHP Method

testApiReadResponse_ThrowsException_WhenEOMIsNotFoundAndLengthLimitIsReached() public method

    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);
    }