File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
src/TextUI/Configuration/Cli Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -810,7 +810,7 @@ public function fromParameters(array $parameters): Configuration
810
810
$ realPath = realpath ($ path );
811
811
812
812
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 " );
814
814
}
815
815
$ logEventsText = $ realPath ;
816
816
@@ -821,7 +821,7 @@ public function fromParameters(array $parameters): Configuration
821
821
$ realPath = realpath ($ path );
822
822
823
823
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 " );
825
825
}
826
826
$ logEventsVerboseText = $ realPath ;
827
827
Original file line number Diff line number Diff line change 1
1
--TEST--
2
- Test fails with invalid path
2
+ Test fail with invalid path
3
3
--FILE--
4
4
<?php declare (strict_types=1 );
5
5
$ traceFile = sys_get_temp_dir () . '/invalid-directory/invalid.file ' ;
@@ -9,11 +9,16 @@ $_SERVER['argv'][] = '--no-configuration';
9
9
$ _SERVER ['argv ' ][] = '--no-output ' ;
10
10
$ _SERVER ['argv ' ][] = '--log-events-text ' ;
11
11
$ _SERVER ['argv ' ][] = $ traceFile ;
12
+ $ _SERVER ['argv ' ][] = __DIR__ . '/../_files/log-events-text ' ;
12
13
13
14
require __DIR__ . '/../../bootstrap.php ' ;
14
15
15
16
(new PHPUnit \TextUI \Application )->run ($ _SERVER ['argv ' ]);
17
+
18
+ print file_get_contents ($ traceFile );
19
+
20
+ unlink ($ traceFile );
16
21
--EXPECTF --
17
22
PHPUnit %s by Sebastian Bergmann and contributors.
18
23
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
Original file line number Diff line number Diff line change 1
1
--TEST--
2
- Test fails with invalid path
2
+ Test fail with invalid path
3
3
--FILE--
4
4
<?php declare (strict_types=1 );
5
5
$ traceFile = sys_get_temp_dir () . '/invalid-directory/invalid.file ' ;
@@ -9,11 +9,12 @@ $_SERVER['argv'][] = '--no-configuration';
9
9
$ _SERVER ['argv ' ][] = '--no-output ' ;
10
10
$ _SERVER ['argv ' ][] = '--log-events-verbose-text ' ;
11
11
$ _SERVER ['argv ' ][] = $ traceFile ;
12
+ $ _SERVER ['argv ' ][] = __DIR__ . '/../_files/log-events-text ' ;
12
13
13
14
require __DIR__ . '/../../bootstrap.php ' ;
14
15
15
16
(new PHPUnit \TextUI \Application )->run ($ _SERVER ['argv ' ]);
16
17
--EXPECTF --
17
18
PHPUnit %s by Sebastian Bergmann and contributors.
18
19
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
You can’t perform that action at this time.
0 commit comments