diff --git a/Tests/WebTestCase.php b/Tests/WebTestCase.php index eb39dd5..b3e12d1 100644 --- a/Tests/WebTestCase.php +++ b/Tests/WebTestCase.php @@ -17,9 +17,9 @@ use Symfony\Component\HttpKernel\Kernel; abstract class WebTestCase extends BaseWebTestCase { - protected function deleteTmpDir($testCase) + protected function deleteTmpDir() { - if (!file_exists($dir = sys_get_temp_dir().'/'.Kernel::VERSION.'/'.$testCase)) { + if (!file_exists($dir = sys_get_temp_dir().'/'.Kernel::VERSION)) { return; } @@ -53,4 +53,10 @@ abstract class WebTestCase extends BaseWebTestCase isset($options['debug']) ? $options['debug'] : true ); } + + public function setUp() + { + parent::setUp(); + $this->deleteTmpDir(); + } }