mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-08 18:49:26 +03:00
Fix test suite
This commit is contained in:
parent
d1be0d5093
commit
56e8c3d318
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user