SensioLabs\Deptrac\Tests\OutputFormatter\ConsoleOutputFormatterTest::testBasic PHP Method

testBasic() public method

public testBasic ( array $violations, $expectedOutput )
$violations array
$expectedOutput
    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));
    }