]> git.immae.eu Git - github/wallabag/wallabag.git/blob - vendor/twig/twig/test/Twig/Tests/Fixtures/tests/iterable.test
ec52550134808fa51865eb035549838aa8a9b4ed
[github/wallabag/wallabag.git] / vendor / twig / twig / test / Twig / Tests / Fixtures / tests / iterable.test
1 --TEST--
2 "iterable" test
3 --TEMPLATE--
4 {{ foo is iterable ? 'ok' : 'ko' }}
5 {{ traversable is iterable ? 'ok' : 'ko' }}
6 {{ obj is iterable ? 'ok' : 'ko' }}
7 {{ val is iterable ? 'ok' : 'ko' }}
8 --DATA--
9 return array(
10 'foo' => array(),
11 'traversable' => new ArrayIterator(array()),
12 'obj' => new stdClass(),
13 'val' => 'test',
14 );
15 --EXPECT--
16 ok
17 ok
18 ko
19 ko