public function ensureInstalled() { if (!$this->shellHelper->commandExists('git')) { throw new DependencyMissingException('Git must be installed'); } }
/** * Test GitHelper::ensureInstalled(). */ public function testEnsureInstalled() { try { $this->gitHelper->ensureInstalled(); } catch (\Exception $e) { $this->fail(); } }