public function testQuietLogDebug()
 {
     $bufferedOutput = new BufferedOutput(OutputInterface::VERBOSITY_VERY_VERBOSE);
     $installOutput = new InstallOutput(new ConsoleLogger($bufferedOutput));
     $installOutput->debug('Testing log');
     $this->assertEmpty($bufferedOutput->fetch());
 }
Example #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());
 }