/** * 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); }
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(); }
/** * @param string $name * @return Console\Helper\HelperInterface */ public function getHelper($name) { return $this->console->getHelperSet()->get($name); }