You are here

public function Twig_Tests_FileCachingTest::testWritingCacheFiles in Zircon Profile 8

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

Twig_Tests_FileCachingTest

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;
}