コード例 #1
0
 /**
  * @test
  */
 public function getMessageCommitConfigurationReturnsSuccesfull()
 {
     $data = array('commit-msg' => array('regular-expression' => 'expression'));
     $this->configFileValidator->shouldReceive('validate');
     $this->configFileReader->setData($data);
     $this->assertTrue(is_array($this->configFile->getMessageCommitConfiguration()));
 }
コード例 #2
0
 /**
  * @test
  */
 public function serviceIsEnabled()
 {
     $data = ['pre-commit' => ['execute' => ['phpunit' => true]]];
     $this->configFileReader->setData($data);
     $this->assertTrue($this->preCommitConfig->isEnabled('phpunit'));
 }