Added testcase for #395
authorJannis Grimm <jannis@gje.ch>
Mon, 25 Jul 2011 20:55:53 +0000 (22:55 +0200)
committerJannis Grimm <jannis@gje.ch>
Mon, 25 Jul 2011 20:55:53 +0000 (22:55 +0200)
test/Twig/Tests/Fixtures/tags/inheritance/parent_change.test [new file with mode: 0644]

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 (file)
index 0000000..a8bc90c
--- /dev/null
@@ -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