/** * @return Command */ protected function getCommand() { $dumpCommand = new DumpCommand(); if (!$dumpCommand->isEnabled()) { $this->markTestSkipped('DumpCommand is not enabled.'); } $application = $this->getApplication(); $application->add($dumpCommand); $command = $this->getApplication()->find('db:dump'); return $command; }