From 29d3cb2b9144e0cd5cb5bf06fdbb42c3a60b4c40 Mon Sep 17 00:00:00 2001 From: Jannis Grimm Date: Mon, 25 Jul 2011 22:55:53 +0200 Subject: [PATCH] Added testcase for #395 --- .../Fixtures/tags/inheritance/parent_change.test | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) create mode 100644 test/Twig/Tests/Fixtures/tags/inheritance/parent_change.test 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 -- 1.7.2.5