Skip to content

Commit 6c7bc20

Browse files
Revert "resolve both relative and absolute paths"
This reverts commit 5eecbf3.
1 parent 532268a commit 6c7bc20

File tree

3 files changed

+2
-63
lines changed

3 files changed

+2
-63
lines changed

src/TextUI/Configuration/Cli/Builder.php

+2-15
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use function getcwd;
1616
use function is_file;
1717
use function is_numeric;
18-
use function realpath;
1918
use function sprintf;
2019
use PHPUnit\Runner\TestSuiteSorter;
2120
use SebastianBergmann\CliParser\Exception as CliParserException;
@@ -806,24 +805,12 @@ public function fromParameters(array $parameters): Configuration
806805
break;
807806

808807
case '--log-events-text':
809-
$path = $option[1];
810-
$realPath = realpath($path);
811-
812-
if (!$realPath) {
813-
throw new Exception("Specified path: {$path} can't be resolved");
814-
}
815-
$logEventsText = $realPath;
808+
$logEventsText = $option[1];
816809

817810
break;
818811

819812
case '--log-events-verbose-text':
820-
$path = $option[1];
821-
$realPath = realpath($path);
822-
823-
if (!$realPath) {
824-
throw new Exception("Specified path: {$path} can't be resolved");
825-
}
826-
$logEventsVerboseText = $realPath;
813+
$logEventsVerboseText = $option[1];
827814

828815
break;
829816

tests/end-to-end/cli/log-events-text-invalid-argument.phpt

-24
This file was deleted.

tests/end-to-end/cli/log-events-verbose-text-invalid-argument.phpt

-24
This file was deleted.

0 commit comments

Comments
 (0)