We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4c2053 commit f00723cCopy full SHA for f00723c
src/Framework/TestCase.php
@@ -1295,7 +1295,8 @@ private function runTest(): mixed
1295
{
1296
$testArguments = array_merge($this->data, array_values($this->dependencyInput));
1297
1298
- $capture = tmpfile();
+ $capture = tmpfile();
1299
+ assert($capture !== false);
1300
$errorLogPrevious = ini_set('error_log', stream_get_meta_data($capture)['uri']);
1301
1302
try {
@@ -1330,9 +1331,7 @@ private function runTest(): mixed
1330
1331
1332
return null;
1333
} finally {
- if ($capture !== false) {
1334
- fclose($capture);
1335
- }
+ fclose($capture);
1336
1337
ini_set('error_log', $errorLogPrevious);
1338
}
0 commit comments