From 56e8c3d318ec7fc32b9e7180e1f1ceaef6059fb0 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 19 Apr 2012 21:23:59 +0200 Subject: [PATCH] Fix test suite --- Tests/WebTestCase.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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(); + } }