You are here

public function Twig_Tests_FileCachingTest::testClearingCacheFiles in Zircon Profile 8.0

Same name and namespace in other branches
  1. 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

Twig_Tests_FileCachingTest

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.');
}