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(''); }
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()); }