public function testGetSet()
 {
     $ruleViolation = new RulesetViolation($dep = $this->prophesize(DependencyInterface::class)->reveal(), 'layerA', 'layerB');
     $this->assertSame($dep, $ruleViolation->getDependency());
     $this->assertEquals('layerA', $ruleViolation->getLayerA());
     $this->assertEquals('layerB', $ruleViolation->getLayerB());
 }
 private function handleDependeny(RulesetViolation $violation, OutputInterface $output)
 {
     $output->writeln(sprintf('<info>%s</info>::%s must not depend on <info>%s</info> (%s on %s)', $violation->getDependency()->getClassA(), $violation->getDependency()->getClassALine(), $violation->getDependency()->getClassB(), $violation->getLayerA(), $violation->getLayerB()));
 }