Example #1
0
 private function runWithConfig($config)
 {
     $kernel = new TestKernel($config);
     $kernel->boot();
     /** @var SkrzBunnyBundle $bundle */
     $bundle = $kernel->getBundle("SkrzBunnyBundle");
     $application = new Application($kernel);
     $bundle->registerCommands($application);
     $tester = new CommandTester($application->find("bunny:setup"));
     $tester->execute([]);
 }
 private function runWithConfig($config, $input)
 {
     $kernel = new TestKernel($config);
     $kernel->boot();
     /** @var SkrzBunnyBundle $bundle */
     $bundle = $kernel->getBundle("SkrzBunnyBundle");
     $application = new Application($kernel);
     $bundle->registerCommands($application);
     $tester = new CommandTester($application->find("bunny:consumer"));
     $tester->execute($input);
     return $kernel->getContainer();
 }