diff --git a/src/TextUI/Configuration/Cli/Builder.php b/src/TextUI/Configuration/Cli/Builder.php index 9c4515ac2e9..2e5b57ee046 100644 --- a/src/TextUI/Configuration/Cli/Builder.php +++ b/src/TextUI/Configuration/Cli/Builder.php @@ -15,7 +15,6 @@ use function getcwd; use function is_file; use function is_numeric; -use function realpath; use function sprintf; use PHPUnit\Runner\TestSuiteSorter; use SebastianBergmann\CliParser\Exception as CliParserException; @@ -806,24 +805,12 @@ public function fromParameters(array $parameters): Configuration break; case '--log-events-text': - $path = $option[1]; - $realPath = realpath($path); - - if (!$realPath) { - throw new Exception("Specified path: {$path} can't be resolved"); - } - $logEventsText = $realPath; + $logEventsText = $option[1]; break; case '--log-events-verbose-text': - $path = $option[1]; - $realPath = realpath($path); - - if (!$realPath) { - throw new Exception("Specified path: {$path} can't be resolved"); - } - $logEventsVerboseText = $realPath; + $logEventsVerboseText = $option[1]; break; diff --git a/tests/end-to-end/cli/log-events-text-invalid-argument.phpt b/tests/end-to-end/cli/log-events-text-invalid-argument.phpt deleted file mode 100644 index 1362b641765..00000000000 --- a/tests/end-to-end/cli/log-events-text-invalid-argument.phpt +++ /dev/null @@ -1,24 +0,0 @@ ---TEST-- -phpunit --no-output --log-events-text logfile.txt ---FILE-- -run($_SERVER['argv']); - -print file_get_contents($traceFile); - -unlink($traceFile); ---EXPECTF-- -PHPUnit 10.5.3 by Sebastian Bergmann and contributors. - -Specified path: dasdasdasdasd/dasdasdsa.log can't be resolved diff --git a/tests/end-to-end/cli/log-events-verbose-text-invalid-argument.phpt b/tests/end-to-end/cli/log-events-verbose-text-invalid-argument.phpt deleted file mode 100644 index ad2962385c5..00000000000 --- a/tests/end-to-end/cli/log-events-verbose-text-invalid-argument.phpt +++ /dev/null @@ -1,24 +0,0 @@ ---TEST-- -phpunit --no-output --log-events-verbose-text logfile.txt ---FILE-- -run($_SERVER['argv']); - -print file_get_contents($traceFile); - -unlink($traceFile); ---EXPECTF-- -PHPUnit 10.5.3 by Sebastian Bergmann and contributors. - -Specified path: dasdasdasdasd/dasdasdsa.log can't be resolved