From: Fabien Potencier Date: Mon, 5 Jul 2010 14:58:45 +0000 (+0200) Subject: made inheritance test more robust X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=b412ddf003c5e429abbbe3a17821baba111a586a;p=web%2Fkonrad%2Ftwig.git made inheritance test more robust --- diff --git a/test/Twig/Tests/Fixtures/tags/inheritance/parent_isolation.test b/test/Twig/Tests/Fixtures/tags/inheritance/parent_isolation.test index 4cfa895..6281671 100644 --- a/test/Twig/Tests/Fixtures/tags/inheritance/parent_isolation.test +++ b/test/Twig/Tests/Fixtures/tags/inheritance/parent_isolation.test @@ -3,14 +3,18 @@ --TEMPLATE-- {% extends "base.twig" %} {% block content %}{% include "included.twig" %}{% endblock %} + {% block footer %}Footer{% endblock %} --TEMPLATE(included.twig)-- {% extends "base.twig" %} -{% block content %}{% endblock %} +{% block content %}Included Content{% endblock %} --TEMPLATE(base.twig)-- -{% block content %}{% endblock %} -{% block footer %}{% endblock %} +{% block content %}Default Content{% endblock %} + +{% block footer %}Default Footer{% endblock %} --DATA-- return array() --EXPECT-- +Included Content +Default Footer Footer