Neos\Flow\Tests\Unit\Property\TypeConverter\MediaTypeConverterTest::contentTypesBodiesAndExpectedUnifiedArguments PHP Method

contentTypesBodiesAndExpectedUnifiedArguments() public method

Data provider
    public function contentTypesBodiesAndExpectedUnifiedArguments()
    {
        return [['application/json', '{"jsonArgument":"jsonValue"}', ['jsonArgument' => 'jsonValue']], ['application/json', 'invalid json source code', []], ['application/json; charset=UTF-8', '{"jsonArgument":"jsonValue"}', ['jsonArgument' => 'jsonValue']], ['application/xml', '<root><xmlArgument>xmlValue</xmlArgument></root>', ['xmlArgument' => 'xmlValue']], ['text/xml', '<root><xmlArgument>xmlValue</xmlArgument><![CDATA[<!-- text/xml is, by the way, meant to be readable by "the casual user" -->]]></root>', ['xmlArgument' => 'xmlValue']], ['text/xml', '<invalid xml source code>', []], ['application/xml;charset=UTF8', '<root><xmlArgument>xmlValue</xmlArgument></root>', ['xmlArgument' => 'xmlValue']], ['application/x-javascript', '{"jsonArgument":"jsonValue"}', ['jsonArgument' => 'jsonValue']], ['text/javascript', '{"jsonArgument":"jsonValue"}', ['jsonArgument' => 'jsonValue']], ['text/x-javascript', '{"jsonArgument":"jsonValue"}', ['jsonArgument' => 'jsonValue']], ['text/x-json', '{"jsonArgument":"jsonValue"}', ['jsonArgument' => 'jsonValue']]];
    }