public function testGenerateComplexWithDecoratedOutput()
{
$expectedText = str_replace("\n", PHP_EOL, <<<'TEXT'
1) someFile.php (<comment>some_fixer_name_here</comment>)
<comment> ---------- begin diff ----------</comment>
this text is a diff ;)
<comment> ----------- end diff -----------</comment>
2) anotherFile.php (<comment>another_fixer_name_here</comment>)
<comment> ---------- begin diff ----------</comment>
another diff here ;)
<comment> ----------- end diff -----------</comment>
Checked all files in 1.234 seconds, 2.500 MB memory used
TEXT
);
$this->assertSame($expectedText, $this->reporter->generate(ReportSummary::create()->setAddAppliedFixers(true)->setChanged(array('someFile.php' => array('appliedFixers' => array('some_fixer_name_here'), 'diff' => 'this text is a diff ;)'), 'anotherFile.php' => array('appliedFixers' => array('another_fixer_name_here'), 'diff' => 'another diff here ;)')))->setIsDecoratedOutput(true)->setIsDryRun(true)->setMemory(2.5 * 1024 * 1024)->setTime(1234)));
}