Skip to content

Commit

Permalink
Add failing test case for issue friendsoftwig#181
Browse files Browse the repository at this point in the history
  • Loading branch information
sustmi committed Jul 2, 2021
1 parent fbb854c commit 19819da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/Twig3FunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ public function getData()
['{% set foo %}1{% endset %}{{ foo }}', null],
['{% set foo %}1{% endset %}{{ include("foo.html.twig", {foo: foo}) }}', null],
['{% set template = \'foo.html.twig\' %}{% include template %}', null],
['{% for item in list %}{% set foo = item %}{% endfor %}{{ foo }}', 'Unused variable "foo".'],

// import spacing
['{% import "foo.html.twig" as foo %}{{ foo() }}', 'There should be 1 space before the source.'],
Expand Down

0 comments on commit 19819da

Please sign in to comment.