We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fba9f3 commit e31f940Copy full SHA for e31f940
src/PhpGitHooks/Tests/Application/Config/ConfigFileTest.php
@@ -75,4 +75,19 @@ public function getCommitMsgConfigurationThrowsException()
75
76
$this->configFile->getMessageCommitConfiguration();
77
}
78
+
79
+ /**
80
+ * @throws InvalidConfigStructureException
81
+ *
82
+ * @test
83
+ */
84
+ public function getCommitMsgConfigurationWithoutRegExpThrowsException()
85
+ {
86
+ $this->setExpectedException(InvalidConfigStructureException::class);
87
+ $this->configFileReader->fileContents = ['commit-msg' => [
88
+ 'enabled' => true
89
+ ]];
90
91
+ $this->configFile->getMessageCommitConfiguration();
92
+ }
93
0 commit comments