Skip to content
Browse files

Added testcase for #395

  • Loading branch information...
1 parent 4fc7a8d commit 29d3cb2b9144e0cd5cb5bf06fdbb42c3a60b4c40 @netzhuffle netzhuffle committed
Showing with 16 additions and 0 deletions.
  1. +16 −0 test/Twig/Tests/Fixtures/tags/inheritance/parent_change.test
View
16 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

0 comments on commit 29d3cb2

Please sign in to comment.
Something went wrong with that request. Please try again.