public function Twig_Tests_Loader_FilesystemTest::testSecurity in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/test/Twig/Tests/Loader/FilesystemTest.php \Twig_Tests_Loader_FilesystemTest::testSecurity()
@dataProvider getSecurityTests
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ Loader/ FilesystemTest.php, line 17
Class
Code
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());
}
}