]> git.immae.eu Git - github/wallabag/wallabag.git/blob - vendor/twig/twig/test/Twig/Tests/Fixtures/functions/dump_array.test
twig implementation
[github/wallabag/wallabag.git] / vendor / twig / twig / test / Twig / Tests / Fixtures / functions / dump_array.test
1 --TEST--
2 "dump" function, xdebug is not loaded or xdebug <2.2-dev is loaded
3 --CONDITION--
4 !extension_loaded('xdebug') || (($r = new ReflectionExtension('xdebug')) && version_compare($r->getVersion(), '2.2-dev', '<'))
5 --TEMPLATE--
6 {{ dump() }}
7 --DATA--
8 return array('foo' => 'foo', 'bar' => 'bar')
9 --CONFIG--
10 return array('debug' => true, 'autoescape' => false);
11 --EXPECT--
12 array(3) {
13 ["foo"]=>
14 string(3) "foo"
15 ["bar"]=>
16 string(3) "bar"
17 ["global"]=>
18 string(6) "global"
19 }