Skip to content

Commit

Permalink
Fix post test clean up for temporary files
Browse files Browse the repository at this point in the history
Signed-off-by: George Steel <[email protected]>
  • Loading branch information
gsteel committed Sep 4, 2024
1 parent fd48e31 commit 6a917e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/StreamTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ protected function tearDown(): void
if (is_string($this->tmpnam) && file_exists($this->tmpnam)) {
unlink($this->tmpnam);
}
}

public static function tearDownAfterClass(): void
{
/** @see self::invalidResources() */
foreach (self::$tempFiles as $tempFile) {
if (! file_exists($tempFile)) {
continue;
Expand Down

0 comments on commit 6a917e6

Please sign in to comment.