public function testBasic(array $violations, $expectedOutput)
{
$output = new BufferedOutput();
$formatter = new ConsoleOutputFormatter();
$formatter->finish(new DependencyContext($this->prophesize(AstMap::class)->reveal(), $violations, $this->prophesize(DependencyResult::class)->reveal(), $this->prophesize(ClassNameLayerResolverInterface::class)->reveal()), $output, new OutputFormatterInput([]));
$o = $output->fetch();
$this->assertEquals($this->normalize($expectedOutput), $this->normalize($o));
}