Skip to content

Commit 66d926b

Browse files
authored
Merge pull request #3745 from morozov/sqlite-rm-temp-file
Remove temporary SQLite file on teardown
2 parents 567bfad + adeaac5 commit 66d926b

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)