Unverified Commit 66d926b5 authored by Sergei Morozov's avatar Sergei Morozov Committed by GitHub

Merge pull request #3745 from morozov/sqlite-rm-temp-file

Remove temporary SQLite file on teardown
parents 567bfade adeaac53
...@@ -15,7 +15,9 @@ use Exception; ...@@ -15,7 +15,9 @@ use Exception;
use PDO; use PDO;
use RuntimeException; use RuntimeException;
use Throwable; use Throwable;
use function file_exists;
use function in_array; use function in_array;
use function unlink;
class ConnectionTest extends DbalFunctionalTestCase class ConnectionTest extends DbalFunctionalTestCase
{ {
...@@ -27,6 +29,10 @@ class ConnectionTest extends DbalFunctionalTestCase ...@@ -27,6 +29,10 @@ class ConnectionTest extends DbalFunctionalTestCase
protected function tearDown() : void protected function tearDown() : void
{ {
if (file_exists('/tmp/test_nesting.sqlite')) {
unlink('/tmp/test_nesting.sqlite');
}
parent::tearDown(); parent::tearDown();
$this->resetSharedConn(); $this->resetSharedConn();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment