diff --git a/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php b/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php index 610bfa3b58..0b04f81af0 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php @@ -72,7 +72,7 @@ class CacheWarmingKernel extends Kernel { $this->withTemplating = $withTemplating; - parent::__construct('dev', true); + parent::__construct(($withTemplating ? 'with' : 'without').'_templating', true); } public function getName() @@ -106,7 +106,7 @@ class CacheWarmingKernel extends Kernel public function getCacheDir() { - return sys_get_temp_dir().'/'.Kernel::VERSION.'/CacheWarmingKernel/cache'; + return sys_get_temp_dir().'/'.Kernel::VERSION.'/CacheWarmingKernel/cache/'.$this->environment; } public function getLogDir()