mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-31 04:27:00 +00:00
added some tests
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
--TEST--
|
||||
macro
|
||||
--TEMPLATE--
|
||||
{% extends "parent" %}
|
||||
{% import _self as me %}
|
||||
|
||||
{% block test %}
|
||||
{{ me.testMacro() }}
|
||||
{% endblock test %}
|
||||
--TEMPLATE(parent)--
|
||||
{% import _self as me %}
|
||||
|
||||
{% block test %}
|
||||
Hello
|
||||
{% endblock test %}
|
||||
|
||||
{% macro testMacro() %}
|
||||
Test
|
||||
{% endmacro %}
|
||||
--DATA--
|
||||
return []
|
||||
--EXPECT--
|
||||
Test
|
||||
Reference in New Issue
Block a user