Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
bruli committed Sep 6, 2015
1 parent 3fba9f3 commit e31f940
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/PhpGitHooks/Tests/Application/Config/ConfigFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,19 @@ public function getCommitMsgConfigurationThrowsException()

$this->configFile->getMessageCommitConfiguration();
}

/**
* @throws InvalidConfigStructureException
*
* @test
*/
public function getCommitMsgConfigurationWithoutRegExpThrowsException()
{
$this->setExpectedException(InvalidConfigStructureException::class);
$this->configFileReader->fileContents = ['commit-msg' => [
'enabled' => true
]];

$this->configFile->getMessageCommitConfiguration();
}
}

0 comments on commit e31f940

Please sign in to comment.