@dataProvider getSecurityTests
public function testSecurity($template) {
$loader = new Twig_Loader_Filesystem(array(
dirname(__FILE__) . '/../Fixtures',
));
try {
$loader
->getCacheKey($template);
$this
->fail();
} catch (Twig_Error_Loader $e) {
$this
->assertNotContains('Unable to find template', $e
->getMessage());
}
}