/**
  * @param array $configData
  *
  * @return array
  */
 private function commitMsg(array $configData)
 {
     $this->commitMsgProcessor->setIO($this->IO);
     return $this->commitMsgProcessor->execute($configData);
 }
 /**
  * @test
  */
 public function isEnabled()
 {
     $this->iOinterface->setAsk('y');
     $data = $this->commitMsgProcessor->execute();
     $this->assertTrue($data['commit-msg']['enabled']);
 }
 /**
  * @test
  */
 public function commitMsgExpressionRegular()
 {
     $this->IO->shouldReceive('ask')->twice()->andReturn('y', '#[0-9]{2,7}');
     $commitMsg = $this->commitMsgProcessor->execute([]);
     $this->assertSame('#[0-9]{2,7}', $commitMsg['commit-msg']['regular-expression']);
 }
 /**
  * @return array
  */
 private function commitMsg()
 {
     $this->commitMsgProcessor->setIO($this->io);
     return $this->commitMsgProcessor->execute();
 }