]> git.immae.eu Git - github/wallabag/wallabag.git/blob - vendor/twig/twig/test/Twig/Tests/Fixtures/tests/constant.test
60218ac04c0c72655368ffd31186a2a7eaa911d8
[github/wallabag/wallabag.git] / vendor / twig / twig / test / Twig / Tests / Fixtures / tests / constant.test
1 --TEST--
2 "const" test
3 --TEMPLATE--
4 {{ 8 is constant('E_NOTICE') ? 'ok' : 'no' }}
5 {{ 'bar' is constant('TwigTestFoo::BAR_NAME') ? 'ok' : 'no' }}
6 {{ value is constant('TwigTestFoo::BAR_NAME') ? 'ok' : 'no' }}
7 {{ 2 is constant('ARRAY_AS_PROPS', object) ? 'ok' : 'no' }}
8 --DATA--
9 return array('value' => 'bar', 'object' => new ArrayObject(array('hi')));
10 --EXPECT--
11 ok
12 ok
13 ok
14 ok