/** * Execute the console command. * * @return void */ public function fire() { $this->call("zapper:build_db", $this->getBuildDBArgs()); $this->call("zapper:migrate", $this->getMigrateArgs()); PHPUnitCommand::main(FALSE, $this->argument('test')); if (!$this->option('no-drop')) { $this->call("zapper:drop_db"); } }
public static function main($exit = TRUE, $test = NULL) { $command = new PHPUnitCommand(); return $command->run($_SERVER['argv'], $exit, $test); }