/**
  * @return array
  *
  * @throws ConfigFileNotFoundException
  * @throws InvalidConfigStructureException
  */
 public function getPreCommitConfiguration()
 {
     $this->configFileValidator->validate();
     $data = $this->getConfigurationData();
     if (!isset($data['pre-commit']) || !isset($data['pre-commit']['execute'])) {
         throw new InvalidConfigStructureException();
     }
     return $data['pre-commit']['execute'];
 }
 /**
  * @test
  */
 public function validateIsSuccessful()
 {
     $this->checkConfigFile->setExists(true);
     $this->assertEquals(null, $this->configFileValidator->validate());
 }