mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-30 20:16:45 +00:00
Add tests
This commit is contained in:
@@ -416,6 +416,31 @@ EOHTML,
|
||||
],
|
||||
'index', 3,
|
||||
],
|
||||
|
||||
// error occurs in an embed tag
|
||||
[
|
||||
[
|
||||
'index' => "
|
||||
{% embed 'base' %}
|
||||
{% endembed %}",
|
||||
'base' => '{% block foo %}{{ foo.bar }}{% endblock %}',
|
||||
],
|
||||
'base', 1,
|
||||
],
|
||||
|
||||
// error occurs in an overridden block from an embed tag
|
||||
[
|
||||
[
|
||||
'index' => "
|
||||
{% embed 'base' %}
|
||||
{% block foo %}
|
||||
{{ foo.bar }}
|
||||
{% endblock %}
|
||||
{% endembed %}",
|
||||
'base' => '{% block foo %}{% endblock %}',
|
||||
],
|
||||
'index', 4,
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user