You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
pico/lib/twig/test/Twig/Tests/Fixtures/functions/dump.test

22 lines
347 B

--TEST--
"dump" function
--TEMPLATE--
{{ dump() }}
{{ dump('foo') }}
{{ dump('foo', 'bar') }}
--DATA--
return array('foo' => 'foo', 'bar' => 'bar')
--CONFIG--
return array('debug' => true, 'autoescape' => false);
--EXPECT--
array(2) {
["foo"]=>
string(3) "foo"
["bar"]=>
string(3) "bar"
}
string(3) "foo"
string(3) "foo"
string(3) "bar"