Skip to content

Commit d2efb4d

Browse files
committed
Fix assertFileDoesNotExist method in phpunit
1 parent df54b67 commit d2efb4d

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

tests/phpbu/Backup/Source/InfluxdumpTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function testBackupFail()
115115
try {
116116
$influxd->backup($target, $appResult);
117117
} catch (Exception $e) {
118-
$this->assertFileDoesNotExist($file);
118+
$this->assertFileNotExists($file);
119119
throw $e;
120120
}
121121
}

tests/phpbu/Backup/Source/LdapdumpTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public function testBackupFail()
200200
try {
201201
$ldap->backup($target, $appResult);
202202
} catch (Exception $e) {
203-
$this->assertFileDoesNotExist($file);
203+
$this->assertFileNotExists($file);
204204
throw $e;
205205
}
206206
}

tests/phpbu/Backup/Source/MysqldumpTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ public function testBackupFail()
338338
try {
339339
$mysqldump->backup($target, $appResult);
340340
} catch (Exception $e) {
341-
$this->assertFileDoesNotExist($file);
341+
$this->assertFileNotExists($file);
342342
throw $e;
343343
}
344344
}

tests/phpbu/Util/CliTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ public function testRemoveDir()
181181

182182
Cli::removeDir($dirToDelete);
183183

184-
$this->assertFileDoesNotExist($file);
185-
$this->assertFileDoesNotExist($fileInSub);
186-
$this->assertFileDoesNotExist($subDir);
187-
$this->assertFileDoesNotExist($dirToDelete);
184+
$this->assertFileNotExists($file);
185+
$this->assertFileNotExists($fileInSub);
186+
$this->assertFileNotExists($subDir);
187+
$this->assertFileNotExists($dirToDelete);
188188
}
189189

190190
/**

0 commit comments

Comments
 (0)