diff --git a/test/StreamTest.php b/test/StreamTest.php index 6cd978c5..498bdff2 100644 --- a/test/StreamTest.php +++ b/test/StreamTest.php @@ -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;