Skip to content

Commit adeaac5

Browse files
committed
Remove temporary DB file on teardown
1 parent 9be84e7 commit adeaac5

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
@@ -15,7 +15,9 @@
1515
use PDO;
1616
use RuntimeException;
1717
use Throwable;
18+
use function file_exists;
1819
use function in_array;
20+
use function unlink;
1921

2022
class ConnectionTest extends DbalFunctionalTestCase
2123
{
@@ -27,6 +29,10 @@ protected function setUp() : void
2729

2830
protected function tearDown() : void
2931
{
32+
if (file_exists('/tmp/test_nesting.sqlite')) {
33+
unlink('/tmp/test_nesting.sqlite');
34+
}
35+
3036
parent::tearDown();
3137
$this->resetSharedConn();
3238
}

0 commit comments

Comments
 (0)