public function getConfig($key, $dir = null, $mustRun = false) { $args = ['config', '--get', $key]; return $this->execute($args, $dir, $mustRun); }
/** * Test GitHelper::getConfig(). */ public function testGetConfig() { $email = '*****@*****.**'; $repository = $this->getRepositoryDir(); chdir($repository); shell_exec('git config user.email ' . $email); $config = $this->gitHelper->getConfig('user.email', $repository); $this->assertEquals($email, $config); }