File tree Expand file tree Collapse file tree 3 files changed +37
-37
lines changed Expand file tree Collapse file tree 3 files changed +37
-37
lines changed Original file line number Diff line number Diff line change 2727 $ decoded ->timeout = (int ) $ timeout ;
2828}
2929
30- echo json_encode ($ decoded );
30+ echo json_encode ($ decoded, JSON_PRETTY_PRINT );
3131
3232exit (0 );
Original file line number Diff line number Diff line change @@ -3,23 +3,23 @@ infection-config.php renders proper json defaults
33--FILE--
44<?php declare (strict_types=1 );
55$ bin = PHP_BINARY . ' ' . __DIR__ .'/../../bin/infection-config.php ' ;
6- echo shell_exec ($ bin . " | jq " );
6+ echo shell_exec ($ bin );
77--EXPECT --
88{
9- "$ schema " : "vendor/infection/infection/resources/schema.json " ,
10- "timeout " : 30 ,
11- "source " : {
12- "directories " : [
13- "src "
14- ]
15- },
16- "staticAnalysisTool " : "phpstan " ,
17- "logs " : {
18- "text " : "tmp/infection.log "
19- },
20- "mutators " : {
21- "@default " : false,
22- "PHPStan \\Infection \\TrinaryLogicMutator " : true
23- },
24- "bootstrap " : "build-infection/vendor/autoload.php "
9+ "$ schema " : "vendor\ /infection\ /infection\ /resources\ /schema.json " ,
10+ "timeout " : 30 ,
11+ "source " : {
12+ "directories " : [
13+ "src "
14+ ]
15+ },
16+ "staticAnalysisTool " : "phpstan " ,
17+ "logs " : {
18+ "text " : "tmp\ /infection.log "
19+ },
20+ "mutators " : {
21+ "@default " : false,
22+ "PHPStan \\Infection \\TrinaryLogicMutator " : true
23+ },
24+ "bootstrap " : "build-infection\ /vendor\ /autoload.php "
2525}
Original file line number Diff line number Diff line change @@ -3,25 +3,25 @@ infection-config.php renders proper json
33--FILE--
44<?php declare (strict_types=1 );
55$ bin = PHP_BINARY . ' ' . __DIR__ .'/../../bin/infection-config.php ' ;
6- echo shell_exec ($ bin ." --source-directory='more/files/' --timeout=180 --mutator-class='My\Class' | jq " );
6+ echo shell_exec ($ bin ." --source-directory='more/files/' --timeout=180 --mutator-class='My\Class' " );
77--EXPECT --
88{
9- "$ schema " : "vendor/infection/infection/resources/schema.json " ,
10- "timeout " : 180 ,
11- "source " : {
12- "directories " : [
13- "src " ,
14- "more/files/ "
15- ]
16- },
17- "staticAnalysisTool " : "phpstan " ,
18- "logs " : {
19- "text " : "tmp/infection.log "
20- },
21- "mutators " : {
22- "@default " : false,
23- "PHPStan \\Infection \\TrinaryLogicMutator " : true,
24- "My \\Class " : true
25- },
26- "bootstrap " : "build-infection/vendor/autoload.php "
9+ "$ schema " : "vendor\ /infection\ /infection\ /resources\ /schema.json " ,
10+ "timeout " : 180 ,
11+ "source " : {
12+ "directories " : [
13+ "src " ,
14+ "more\ /files\ / "
15+ ]
16+ },
17+ "staticAnalysisTool " : "phpstan " ,
18+ "logs " : {
19+ "text " : "tmp\ /infection.log "
20+ },
21+ "mutators " : {
22+ "@default " : false,
23+ "PHPStan \\Infection \\TrinaryLogicMutator " : true,
24+ "My \\Class " : true
25+ },
26+ "bootstrap " : "build-infection\ /vendor\ /autoload.php "
2727}
You can’t perform that action at this time.
0 commit comments