diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/WebTestCase.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/WebTestCase.php index 701218407cff..aeff627c58bd 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/WebTestCase.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/WebTestCase.php @@ -13,6 +13,7 @@ use Symfony\Component\HttpKernel\Util\Filesystem; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase as BaseWebTestCase; +use Symfony\Component\HttpKernel\Kernel; class WebTestCase extends BaseWebTestCase { @@ -33,7 +34,7 @@ protected function setUp() protected function deleteTmpDir($testCase) { - if (!file_exists($dir = sys_get_temp_dir().'/'.$testCase)) { + if (!file_exists($dir = sys_get_temp_dir().'/'.Kernel::VERSION.'/'.$testCase)) { return; } diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/app/AppKernel.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/app/AppKernel.php index 0e97eeaa09f1..f2e8d31167d9 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/app/AppKernel.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/app/AppKernel.php @@ -80,12 +80,12 @@ public function getRootDir() public function getCacheDir() { - return sys_get_temp_dir().'/'.$this->testCase.'/cache/'.$this->environment; + return sys_get_temp_dir().'/'.Kernel::VERSION.'/'.$this->testCase.'/cache/'.$this->environment; } public function getLogDir() { - return sys_get_temp_dir().'/'.$this->testCase.'/logs'; + return sys_get_temp_dir().'/'.Kernel::VERSION.'/'.$this->testCase.'/logs'; } public function registerContainerConfiguration(LoaderInterface $loader) diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/Functional/WebTestCase.php b/src/Symfony/Bundle/SecurityBundle/Tests/Functional/WebTestCase.php index bbeb81e7eed1..b6e8acb53d52 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/Functional/WebTestCase.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/Functional/WebTestCase.php @@ -13,6 +13,7 @@ use Symfony\Component\HttpKernel\Util\Filesystem; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase as BaseWebTestCase; +use Symfony\Component\HttpKernel\Kernel; class WebTestCase extends BaseWebTestCase { @@ -33,7 +34,7 @@ protected function setUp() protected function deleteTmpDir($testCase) { - if (!file_exists($dir = sys_get_temp_dir().'/'.$testCase)) { + if (!file_exists($dir = sys_get_temp_dir().'/'.Kernel::VERSION.'/'.$testCase)) { return; } diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/AppKernel.php b/src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/AppKernel.php index 958a2cad132b..d1b49eee84e9 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/AppKernel.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/AppKernel.php @@ -80,12 +80,12 @@ public function getRootDir() public function getCacheDir() { - return sys_get_temp_dir().'/'.$this->testCase.'/cache/'.$this->environment; + return sys_get_temp_dir().'/'.Kernel::VERSION.'/'.$this->testCase.'/cache/'.$this->environment; } public function getLogDir() { - return sys_get_temp_dir().'/'.$this->testCase.'/logs'; + return sys_get_temp_dir().'/'.Kernel::VERSION.'/'.$this->testCase.'/logs'; } public function registerContainerConfiguration(LoaderInterface $loader)