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

testApiReadRequest_CallsMethodOnModel_WhenEOMIsFound() public method

    public function testApiReadRequest_CallsMethodOnModel_WhenEOMIsFound()
    {
        $text = 'Text';
        $buffer = new Buffer($text);
        $data = 'Data' . HttpReader::HTTP_EOM;
        $result = new StdClass();
        $reader = $this->createReader();
        $parser = $this->createParser();
        $parser->expects($this->once())->method('parseRequest')->with($text . $data)->will($this->returnValue($result));
        $this->assertSame($result, $reader->readRequest($buffer, $data));
    }