/**
  * {@inheritDoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     if ($input->getOption('base-url')) {
         $this->renderer->setBaseUrl($input->getOption('base-url'));
     }
     $counter = $this->renderer->render();
     $output->writeln(sprintf('Rendered <info>%s</info> routes.', $counter));
     if (true === $this->enableAssetic) {
         $this->executeAsseticDump($input, $output);
     }
     $this->executeAssetsInstall($input, $output);
 }
 /**
  * @test
  *
  * @covers Cocur\Bundle\BuildBundle\Renderer\RoutesRenderer::setBaseUrl()
  */
 public function setBaseUrlShouldPropagateBaseUrlToRouteRenderer()
 {
     $this->routeRenderer->shouldReceive('setBaseUrl')->with('/my')->once();
     $this->renderer->setBaseUrl('/my');
 }