1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-10-05 04:01:49 +02:00

[ticket/17540] Fix some small warnings

PHPBB-17540
This commit is contained in:
Marc Alexander
2025-09-14 15:29:12 +02:00
parent 5b4afdfedc
commit cd40a0594e
2 changed files with 19 additions and 9 deletions

View File

@@ -97,11 +97,21 @@ class phpbb_console_command_thumbnail_test extends phpbb_database_test_case
{
parent::tearDown();
unlink($this->phpbb_root_path . 'files/test_png_1');
unlink($this->phpbb_root_path . 'files/test_png_2');
unlink($this->phpbb_root_path . 'files/test_txt');
unlink($this->phpbb_root_path . 'files/thumb_test_png_1');
unlink($this->phpbb_root_path . 'files/thumb_test_png_2');
$delete_files = [
$this->phpbb_root_path . 'files/test_png_1',
$this->phpbb_root_path . 'files/test_png_2',
$this->phpbb_root_path . 'files/test_txt',
$this->phpbb_root_path . 'files/thumb_test_png_1',
$this->phpbb_root_path . 'files/thumb_test_png_2'
];
foreach ($delete_files as $file)
{
if (file_exists($file))
{
unlink($file);
}
}
}
public function test_thumbnails()