From 5fe3cd9834e7e9dbe2828e7fb23a5ea714067886 Mon Sep 17 00:00:00 2001 From: Sven Luijten Date: Sat, 2 May 2020 12:15:38 +0200 Subject: [PATCH] Also delete new config file after tests --- tests/TestCase.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 86b5208..0d4e555 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -26,10 +26,15 @@ public function setUp(): void public function tearDown(): void { - $configFile = __DIR__.'/fixtures/forge.json'; - - if (file_exists($configFile)) { - unlink($configFile); + $configFiles = [ + __DIR__.'/fixtures/forge.json', + __DIR__.'/fixtures/.forge.json', + ]; + + foreach ($configFiles as $configFile) { + if (file_exists($configFile)) { + unlink($configFile); + } } }