public function testRenderOutputAware()
{
$config = new Config('test', ['generator' => 'service', 'one' => 'two']);
$outputConfig = new Config('test', ['renderer' => 'renderer', 'three' => 'four']);
$this->generatorRegistry->getConfig('test_report')->willReturn($config);
$this->generatorRegistry->getService('service')->willReturn($this->generator->reveal());
$this->generator->generate($this->suiteCollection, $config)->willReturn($this->reportsDocument);
$this->rendererRegistry->getService('renderer')->willReturn($this->outputRenderer->reveal());
$this->outputRenderer->render($this->reportsDocument, $outputConfig)->shouldBeCalled();
$this->outputRenderer->setOutput($this->output->reveal())->shouldBeCalled();
$this->rendererRegistry->getConfig('console_output')->willReturn($outputConfig);
$this->reportManager->renderReports($this->output->reveal(), $this->suiteCollection, ['test_report'], ['console_output']);
}