/**
  * {@inheritDoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $persister = new ConnectionPersister($this->getHelper('db')->getConnection());
     $loader = new YamlLoader($this->getFilename($input->getArgument('file')));
     $output->writeln(sprintf("Processing file '<info>%s</info>'... ", $this->getFilename($input->getArgument('file'))));
     $persister->persist($loader->load());
 }
 /** @test */
 public function it_loads_fixtures_file()
 {
     $parser = $this->prophesize(Parser::class);
     $parser->parse(file_get_contents($this->path))->willReturn($this->gasStations);
     $loader = new YamlLoader($this->path, $parser->reveal());
     $this->assertEquals($this->gasStations, $loader->load());
 }