Skip to content

Commit

Permalink
tests: fix log test throwing fatal error when resource is lost or not…
Browse files Browse the repository at this point in the history
… set
  • Loading branch information
falkenhawk committed May 18, 2023
1 parent 1f269dc commit 7343924
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Zend/Log/Filter/ChainingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ public function setUp()

public function tearDown()
{
fclose($this->log);
if ($this->log) {
fclose($this->log);
}
}

public function testFilterAllWriters()
Expand Down

0 comments on commit 7343924

Please sign in to comment.