Skip to content

Commit 6567367

Browse files
committed
Merge pull request Alexia#8 from xPaw/patch-2
Markdown result changes
2 parents b9e0740 + 7a08c9b commit 6567367

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

classes/reporter.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,13 @@ public function addToSection($section, $test, $filePath, $lineNumber, $codeLine)
137137
*/
138138
public function addSections() {
139139
foreach ($this->sectionBuffers as $section => $filePaths) {
140-
$this->add('#'.$section, 1, 1);
140+
$this->add('# '.$section, 1, 1);
141141
foreach ($filePaths as $filePath => $tests) {
142-
$this->add('####'.$filePath, 0, 1);
142+
$this->add('#### '.$filePath, 0, 1);
143143
foreach ($tests as $test => $lines) {
144144
$this->add('* '.$test, 0, 1);
145145
foreach ($lines as $line) {
146-
$this->add(" * Line {$line[0]}: {$line[1]}", 0, 1);
146+
$this->add(" * Line {$line[0]}: `" . str_replace('`', '\'', $line[1]) . "`", 0, 1);
147147
}
148148
}
149149
$this->add('', 1, 0);
@@ -171,4 +171,4 @@ public function onShutdown() {
171171
fclose($this->file);
172172
}
173173
}
174-
?>
174+
?>

0 commit comments

Comments
 (0)