From 3eb0c770fcc4796909f8a696cbca50f83f28f415 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Tue, 20 Apr 2021 22:21:17 +0200 Subject: [PATCH] Replace assertFileDoesNotExist for older phpunit versions Signed-off-by: William Desportes --- test/classes/ConfigTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/classes/ConfigTest.php b/test/classes/ConfigTest.php index 17c4424e8114..3e6e8842a323 100644 --- a/test/classes/ConfigTest.php +++ b/test/classes/ConfigTest.php @@ -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; @@ -113,7 +114,7 @@ public function testLoadConfigs(): void // Teardown unlink($tmpConfig); - $this->assertFileDoesNotExist($tmpConfig); + $this->assertFalse(file_exists($tmpConfig)); } /** @@ -163,7 +164,7 @@ public function testLoadInvalidConfigs(): void // Teardown unlink($tmpConfig); - $this->assertFileDoesNotExist($tmpConfig); + $this->assertFalse(file_exists($tmpConfig)); } /**