public function Twig_Tests_FileCachingTest::testWritingCacheFiles in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/test/Twig/Tests/FileCachingTest.php \Twig_Tests_FileCachingTest::testWritingCacheFiles()
@group legacy
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ FileCachingTest.php, line 44
Class
Code
public function testWritingCacheFiles() {
$name = 'index';
$this->env
->loadTemplate($name);
$cacheFileName = $this->env
->getCacheFilename($name);
$this
->assertTrue(file_exists($cacheFileName), 'Cache file does not exist.');
$this->fileName = $cacheFileName;
}