Skip to content

Commit f9a0e9f

Browse files
Merge branch '11.5'
2 parents 7e93396 + 1d71d8f commit f9a0e9f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Framework/TestRunner/SeparateProcessTestRunner.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
use function assert;
1313
use function defined;
14-
use function file_exists;
1514
use function file_get_contents;
1615
use function get_include_path;
1716
use function hrtime;
17+
use function is_file;
1818
use function restore_error_handler;
1919
use function serialize;
2020
use function set_error_handler;
@@ -172,7 +172,7 @@ private function runTestJob(string $code, Test $test, string $processResultFile)
172172

173173
$processResult = '';
174174

175-
if (file_exists($processResultFile)) {
175+
if (is_file($processResultFile)) {
176176
$processResult = file_get_contents($processResultFile);
177177

178178
assert($processResult !== false);

src/TextUI/Command/Commands/GenerateConfigurationCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
use function assert;
1515
use function defined;
1616
use function fgets;
17-
use function file_exists;
1817
use function file_put_contents;
1918
use function getcwd;
19+
use function is_file;
2020
use function sprintf;
2121
use function trim;
2222
use PHPUnit\Runner\Version;
@@ -67,7 +67,7 @@ public function execute(): Result
6767
}
6868

6969
if (defined('PHPUNIT_COMPOSER_INSTALL') &&
70-
file_exists($directory . '/vendor/phpunit/phpunit/phpunit.xsd')) {
70+
is_file($directory . '/vendor/phpunit/phpunit/phpunit.xsd')) {
7171
$schemaLocation = 'vendor/phpunit/phpunit/phpunit.xsd';
7272
} else {
7373
$schemaLocation = sprintf(

0 commit comments

Comments
 (0)