Skip to content

Commit 86104cf

Browse files
committed
Merge pull request #92 from php-school/split-output
Add newline between args and output
2 parents e53bbba + da9666b commit 86104cf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/ExerciseRunner/CliRunner.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ public function run($fileName, OutputInterface $output)
141141

142142
$output->writeTitle('Arguments');
143143
$output->write(implode($glue, $args->getArrayCopy()));
144+
$output->emptyLine();
144145
}
145146

146147
$output->writeTitle("Output");

test/ExerciseRunner/CliRunnerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function testRunPassesOutputAndReturnsSuccessIfScriptIsSuccessful()
135135
->will($this->returnValue([1, 2, 3]));
136136

137137
$exp = "\n\e[1m\e[4mArguments\e[0m\e[0m\n";
138-
$exp .= "1, 2, 3\n";
138+
$exp .= "1, 2, 3\n\n";
139139
$exp .= "\e[1m\e[4m";
140140
$exp .= "Output\e[0m\e[0m\n";
141141
$exp .= "6\n";

0 commit comments

Comments
 (0)