Transform tasks to console commands.
public addConsoleCommands ( ) |
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(); }