eZ\Publish\Core\REST\Common\Tests\Input\ParsingDispatcherTest::testParseVersion PHP Method

testParseVersion() public method

public testParseVersion ( )
    public function testParseVersion()
    {
        $parserVersionOne = $this->createParserMock();
        $parserVersionTwo = $this->createParserMock();
        $dispatcher = new Common\Input\ParsingDispatcher(['text/html' => $parserVersionOne, 'text/html; version=2' => $parserVersionTwo]);
        $parserVersionOne->expects($this->never())->method('parse');
        $parserVersionTwo->expects($this->once())->method('parse');
        $dispatcher->parse(array(42), 'text/html; version=2');
    }