Skip to content

Commit 2e84ca5

Browse files
committed
Remove temporary DB file on teardown
1 parent 45ab10e commit 2e84ca5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/Doctrine/Tests/DBAL/Functional/ConnectionTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
use PDO;
2020
use RuntimeException;
2121
use Throwable;
22+
use function file_exists;
2223
use function in_array;
24+
use function unlink;
2325

2426
class ConnectionTest extends DbalFunctionalTestCase
2527
{
@@ -31,6 +33,10 @@ protected function setUp() : void
3133

3234
protected function tearDown() : void
3335
{
36+
if (file_exists('/tmp/test_nesting.sqlite')) {
37+
unlink('/tmp/test_nesting.sqlite');
38+
}
39+
3440
parent::tearDown();
3541
$this->resetSharedConn();
3642
}

0 commit comments

Comments
 (0)