File: 4033-missing-unwrap.test

package info (click to toggle)
php-twig 3.22.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,396 kB
  • sloc: php: 24,890; makefile: 111; sh: 43
file content (19 lines) | stat: -rw-r--r-- 383 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Call to undefined method Twig\\TemplateWrapper::yieldBlock()
--TEMPLATE--
{% extends 'parent' %}
{%- block content -%}
    {{ parent() }}
    child
{%- endblock -%}
--TEMPLATE(parent)--
{% extends ['unknowngrandparent', 'grandparent'] %}
--TEMPLATE(grandparent)--
{%- block content -%}
    grandparent
{%- endblock -%}
--DATA--
return []
--EXPECT--
    grandparent
    child