/**
  * @test
  */
 public function toolIsDisabled()
 {
     $this->preCommitConfig->setEnabled(false);
     $this->composerFilesValidator = $this->getMockBuilder(ComposerFilesValidator::class)->disableOriginalConstructor()->getMock();
     $this->composerFilesValidator->expects($this->never())->method('validate');
     $this->checkComposerFilesPreCommitExecutor = new CheckComposerFilesPreCommitExecutor($this->preCommitConfig, $this->composerFilesValidator);
     $this->checkComposerFilesPreCommitExecutor->run($this->outputInterface, array());
 }
 /**
  * @test
  */
 public function runSuccessful()
 {
     $this->checkComposerFilesPreCommitExecutor->run($this->outuputInterface, array());
 }