Skip to content

Commit

Permalink
Revert "resolve both relative and absolute paths"
Browse files Browse the repository at this point in the history
This reverts commit 5eecbf3.
  • Loading branch information
sebastianbergmann committed Feb 4, 2024
1 parent 532268a commit 6c7bc20
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 63 deletions.
17 changes: 2 additions & 15 deletions src/TextUI/Configuration/Cli/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down
24 changes: 0 additions & 24 deletions tests/end-to-end/cli/log-events-text-invalid-argument.phpt

This file was deleted.

24 changes: 0 additions & 24 deletions tests/end-to-end/cli/log-events-verbose-text-invalid-argument.phpt

This file was deleted.

0 comments on commit 6c7bc20

Please sign in to comment.