Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

Commit

Permalink
Also delete new config file after tests
Browse files Browse the repository at this point in the history
  • Loading branch information
svenluijten committed May 2, 2020
1 parent 90ef145 commit 5fe3cd9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

Expand Down

0 comments on commit 5fe3cd9

Please sign in to comment.