Skip to content

Commit

Permalink
Replace assertFileDoesNotExist for older phpunit versions
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Apr 20, 2021
1 parent f8ebd7a commit 3eb0c77
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/classes/ConfigTest.php
Expand Up @@ -13,6 +13,7 @@
use function constant;
use function define;
use function defined;
use function file_exists;
use function file_put_contents;
use function filemtime;
use function fileperms;
Expand Down Expand Up @@ -113,7 +114,7 @@ public function testLoadConfigs(): void

// Teardown
unlink($tmpConfig);
$this->assertFileDoesNotExist($tmpConfig);
$this->assertFalse(file_exists($tmpConfig));
}

/**
Expand Down Expand Up @@ -163,7 +164,7 @@ public function testLoadInvalidConfigs(): void

// Teardown
unlink($tmpConfig);
$this->assertFileDoesNotExist($tmpConfig);
$this->assertFalse(file_exists($tmpConfig));
}

/**
Expand Down

0 comments on commit 3eb0c77

Please sign in to comment.