Skip to content

Commit 573f067

Browse files
Revert "improve formatting"
This reverts commit b0479f2.
1 parent c9c0119 commit 573f067

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

src/TextUI/Configuration/Cli/Builder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ public function fromParameters(array $parameters): Configuration
810810
$realPath = realpath($path);
811811

812812
if (!$realPath) {
813-
throw new Exception("The path \"{$path}\" specified for the --log-events-text option could not be resolved");
813+
throw new Exception("The path {$path} specified for the --log-events-text option could not be resolved");
814814
}
815815
$logEventsText = $realPath;
816816

@@ -821,7 +821,7 @@ public function fromParameters(array $parameters): Configuration
821821
$realPath = realpath($path);
822822

823823
if (!$realPath) {
824-
throw new Exception("The path \"{$path}\" specified for the --log-events-verbose-text option could not be resolved");
824+
throw new Exception("The path {$path} specified for the --log-events-verbose-text option could not be resolved");
825825
}
826826
$logEventsVerboseText = $realPath;
827827

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Test fails with invalid path
2+
Test fail with invalid path
33
--FILE--
44
<?php declare(strict_types=1);
55
$traceFile = sys_get_temp_dir() . '/invalid-directory/invalid.file';
@@ -9,11 +9,16 @@ $_SERVER['argv'][] = '--no-configuration';
99
$_SERVER['argv'][] = '--no-output';
1010
$_SERVER['argv'][] = '--log-events-text';
1111
$_SERVER['argv'][] = $traceFile;
12+
$_SERVER['argv'][] = __DIR__ . '/../_files/log-events-text';
1213

1314
require __DIR__ . '/../../bootstrap.php';
1415

1516
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
17+
18+
print file_get_contents($traceFile);
19+
20+
unlink($traceFile);
1621
--EXPECTF--
1722
PHPUnit %s by Sebastian Bergmann and contributors.
1823

19-
The path "/tmp/invalid-directory/invalid.file" specified for the --log-events-text option could not be resolved
24+
The path /tmp/invalid-directory/invalid.file specified for the --log-events-text option could not be resolved
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Test fails with invalid path
2+
Test fail with invalid path
33
--FILE--
44
<?php declare(strict_types=1);
55
$traceFile = sys_get_temp_dir() . '/invalid-directory/invalid.file';
@@ -9,11 +9,12 @@ $_SERVER['argv'][] = '--no-configuration';
99
$_SERVER['argv'][] = '--no-output';
1010
$_SERVER['argv'][] = '--log-events-verbose-text';
1111
$_SERVER['argv'][] = $traceFile;
12+
$_SERVER['argv'][] = __DIR__ . '/../_files/log-events-text';
1213

1314
require __DIR__ . '/../../bootstrap.php';
1415

1516
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
1617
--EXPECTF--
1718
PHPUnit %s by Sebastian Bergmann and contributors.
1819

19-
The path "/tmp/invalid-directory/invalid.file" specified for the --log-events-verbose-text option could not be resolved
20+
The path /tmp/invalid-directory/invalid.file specified for the --log-events-verbose-text option could not be resolved

0 commit comments

Comments
 (0)