webfactory / symfony-application-tests

Contains several generic test scenarios that can be applied to Symfony applications.
MIT License
10 stars 1 forks source link

testTemplateCanBeCompiled fails if no template files are available #11

Closed MalteWunsch closed 9 years ago

MalteWunsch commented 9 years ago

When running the 0.1.1 test suite in a Symfony 2 project without any views (e.g. just console commands), testTemplateCanBeCompiled fails with:

1) Warning
The data provider specified for Webfactory\Tests\Integration\TwigTemplateTest::testTemplateCanBeCompiled is invalid.
You must call one of in() or append() methods before iterating over a Finder.

The test could skip or be considered successful (see #10) if there are no Twig templates.

Matthimatiker commented 9 years ago

@MalteWunsch please check if version 0.1.2 solves this issue.

MalteWunsch commented 9 years ago

Great success :+1: