Ejemplo n.º 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);
 }
Ejemplo n.º 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();
 }