Skip to content

Commit 74294c8

Browse files
committed
[CI] Silence errors when remove file/dir on test tearDown()
1 parent 7d3a408 commit 74294c8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Tests/Config/AutowireServiceResourceTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,9 @@ public function testNotFreshIfClassNotFound()
103103

104104
protected function tearDown()
105105
{
106-
if (!file_exists($this->file)) {
107-
return;
106+
if (file_exists($this->file)) {
107+
@unlink($this->file);
108108
}
109-
110-
unlink($this->file);
111109
}
112110

113111
private function getStaleFileTime()

0 commit comments

Comments
 (0)