Exemplo n.º 1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $this->factory->addInstallers($this->installers);
     $this->install->runInstallation($this->installers, new EnvDumper());
     // Progress bar does not end with a newline.
     $output->writeln('');
 }
Exemplo n.º 2
0
 public function testRunInstallation()
 {
     $output = new InstallOutput();
     $installer = new DummyInstaller();
     $installers = new InstallerCollection($output);
     $installers->add($installer);
     $manager = new Install($output);
     $manager->runInstallation($installers, new EnvDumper());
     $this->assertEquals($installer->stepCount(), $output->getStepCount());
 }