[feature/twig] Add simple test to make sure Twig filters/tags are working

PHPBB3-11598
This commit is contained in:
Nathan Guse 2013-07-08 15:18:40 -05:00
parent 70a553e0b5
commit 47ec38c011
3 changed files with 20 additions and 0 deletions

View file

@ -309,6 +309,13 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
"a\nb\nc\nd", "a\nb\nc\nd",
), ),
*/ */
array(
'twig.html',
array('VARIABLE' => 'FOObar',),
array(),
array(),
"13FOOBAR|foobar",
),
); );
} }

View file

@ -0,0 +1,6 @@
<!-- EXTENDS "twig_parent.html" -->
<!-- BLOCK overwritten -->
3{VARIABLE|upper}|{VARIABLE|lower}
<!-- ENDBLOCK -->

View file

@ -0,0 +1,7 @@
<!-- BLOCK notoverwritten -->
1
<!-- ENDBLOCK -->
<!-- BLOCK overwritten -->
2
<!-- ENDBLOCK -->