| @@ 298-310 (lines=13) @@ | ||
| 295 | * |
|
| 296 | * @return string |
|
| 297 | */ |
|
| 298 | protected function getMacroFileInfo(CoverFishPHPUnitTest $unitTest) |
|
| 299 | { |
|
| 300 | $fileInfoMacro = '%s%s%s: %s'; |
|
| 301 | return sprintf($fileInfoMacro, |
|
| 302 | PHP_EOL, |
|
| 303 | $this->setIndent(self::MACRO_CONFIG_DETAIL_LINE_INDENT), |
|
| 304 | (false === $this->preventAnsiColors) |
|
| 305 | ? Color::tplDarkGrayColor('File') |
|
| 306 | : 'File' |
|
| 307 | , |
|
| 308 | $unitTest->getFileAndPath() |
|
| 309 | ); |
|
| 310 | } |
|
| 311 | ||
| 312 | /** |
|
| 313 | * message block macro, line 03, cover/annotation line |
|
| @@ 318-331 (lines=14) @@ | ||
| 315 | * @param string $coverLine |
|
| 316 | * @return string |
|
| 317 | */ |
|
| 318 | protected function getMacroCoverInfo($coverLine) |
|
| 319 | { |
|
| 320 | $lineCoverMacro = '%s%s%s: %s%s'; |
|
| 321 | return sprintf($lineCoverMacro, |
|
| 322 | PHP_EOL, |
|
| 323 | $this->setIndent(self::MACRO_CONFIG_DETAIL_LINE_INDENT), |
|
| 324 | (false === $this->preventAnsiColors) |
|
| 325 | ? Color::tplDarkGrayColor('Annotation') |
|
| 326 | : 'Annotation' |
|
| 327 | , |
|
| 328 | $coverLine, |
|
| 329 | PHP_EOL |
|
| 330 | ); |
|
| 331 | } |
|
| 332 | ||
| 333 | /** |
|
| 334 | * message block macro, line 04, error message |
|