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