Skip to content

Commit 45e1d77

Browse files
committed
[CI] Silence errors when remove file/dir on test tearDown()
1 parent 59839b1 commit 45e1d77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Command/YamlLintCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ protected function tearDown()
174174
{
175175
foreach ($this->files as $file) {
176176
if (file_exists($file)) {
177-
unlink($file);
177+
@unlink($file);
178178
}
179179
}
180-
rmdir(sys_get_temp_dir().'/yml-lint-test');
180+
@rmdir(sys_get_temp_dir().'/yml-lint-test');
181181
}
182182
}

0 commit comments

Comments
 (0)