--TEST--
"mapping" test
--TEMPLATE--
{{ empty is mapping ? 'ok' : 'ko' }}
{{ sequence is mapping ? 'ok' : 'ko' }}
{{ empty_array_obj is mapping ? 'ok' : 'ko' }}
{{ sequence_array_obj is mapping ? 'ok' : 'ko' }}
{{ mapping_array_obj is mapping ? 'ok' : 'ko' }}
{{ obj is mapping ? 'ok' : 'ko' }}
{{ mapping is mapping ? 'ok' : 'ko' }}
{{ string is mapping ? 'ok' : 'ko' }}
--DATA--
return [
    'empty' => [],
    'sequence' => [
        'foo',
        'bar',
        'baz'
    ],
    'empty_array_obj' => new \ArrayObject(),
    'sequence_array_obj' => new \ArrayObject(['foo', 'bar']),
    'mapping_array_obj' => new \ArrayObject(['foo' => 'bar']),
    'obj' => new \stdClass(),
    'mapping' => [
        'foo' => 'bar',
        'bar' => 'foo'
    ],
    'string' => 'test',
]
--EXPECT--
ko
ko
ko
ko
ok
ok
ok
ko
