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

testParseCharset() public method

Verifies that the charset specified in the Content-Type is ignored.
public testParseCharset ( )
    public function testParseCharset()
    {
        $parser = $this->createParserMock();
        $dispatcher = new Common\Input\ParsingDispatcher(['text/html' => $parser]);
        $parser->expects($this->at(0))->method('parse')->with(array(42), $dispatcher)->will($this->returnValue(23));
        $this->assertSame(23, $dispatcher->parse(array(42), 'text/html; charset=UTF-8; version=1.0'));
    }