Inheritance: extends Symfony\Component\Console\Application
Example #1
0
 /**
  * Init deployer
  */
 protected function initialize()
 {
     // Create App tester.
     $console = new Application();
     $console->setAutoExit(false);
     $console->setCatchExceptions(false);
     $this->tester = new ApplicationTester($console);
     // Prepare Deployer
     $this->input = $this->getMock('Symfony\\Component\\Console\\Input\\InputInterface');
     $this->output = $this->getMock('Symfony\\Component\\Console\\Output\\OutputInterface');
     $this->deployer = new Deployer($console, $this->input, $this->output);
 }
Example #2
0
 public function setUp()
 {
     // Create App tester.
     $console = new Application();
     $console->setAutoExit(false);
     $console->setCatchExceptions(false);
     $this->tester = new ApplicationTester($console);
     // Prepare Deployer
     $input = $this->getMock('Symfony\\Component\\Console\\Input\\InputInterface');
     $output = $this->getMock('Symfony\\Component\\Console\\Output\\OutputInterface');
     $this->deployer = new Deployer($console, $input, $output);
     // Load recipe
     $this->setUpServer();
     $this->loadRecipe();
     // Init Deployer
     $this->deployer->addConsoleCommands();
 }
Example #3
0
 /**
  * @param string $name
  * @return Console\Helper\HelperInterface
  */
 public function getHelper($name)
 {
     return $this->console->getHelperSet()->get($name);
 }