From: Jannis Grimm Date: Mon, 25 Jul 2011 20:55:53 +0000 (+0200) Subject: Added testcase for #395 X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=29d3cb2b9144e0cd5cb5bf06fdbb42c3a60b4c40;p=web%2Fkonrad%2Ftwig.git Added testcase for #395 --- diff --git a/test/Twig/Tests/Fixtures/tags/inheritance/parent_change.test b/test/Twig/Tests/Fixtures/tags/inheritance/parent_change.test new file mode 100644 index 0000000..a8bc90c --- /dev/null +++ b/test/Twig/Tests/Fixtures/tags/inheritance/parent_change.test @@ -0,0 +1,16 @@ +--TEST-- +"extends" tag +--TEMPLATE-- +{% extends foo ? 'foo.twig' : 'bar.twig' %} +--TEMPLATE(foo.twig)-- +FOO +--TEMPLATE(bar.twig)-- +BAR +--DATA-- +return array('foo' => true) +--EXPECT-- +FOO +--DATA-- +return array('foo' => false) +--EXPECT-- +BAR