/**
  * @test
  */
 public function circuitIntegrationTest()
 {
     $container = ContainerBuilder::buildDevContainer();
     $circuit = CircuitInstructionParser::parse($container->get(ResourceProvider::class)->getTestResource('Day7/circuit.txt'));
     $wires = CircuitSearchService::findAllWires($circuit);
     $expected = ['d' => 72, 'e' => 507, 'f' => 492, 'g' => 114, 'h' => 65412, 'i' => 65079, 'x' => 123, 'y' => 456];
     foreach (array_keys($expected) as $name) {
         $this->assertEquals($expected[$name], $wires[$name]->getSignal());
     }
 }
 /**
  * Returns the parsed {@link Circuit} from the problem input
  * @return Circuit
  */
 private function getCircuit()
 {
     return CircuitInstructionParser::parse($this->inputProvider->getInputFromFileForDay(7));
 }