ignoreUnstagedChanges() public method

public ignoreUnstagedChanges ( ) : boolean
return boolean
 function it_should_not_run_when_disabled(GrumPHP $grumPHP, Repository $repository)
 {
     $event = new RunnerEvent(new TasksCollection(), new GitPreCommitContext(new FilesCollection()), new TaskResultCollection());
     $grumPHP->ignoreUnstagedChanges()->willReturn(false);
     $this->saveStash($event);
     $this->popStash($event);
     $repository->run(Argument::cetera())->shouldNotBeCalled();
 }
 /**
  * @param ContextInterface $context
  *
  * @return bool
  */
 private function isStashEnabled(ContextInterface $context)
 {
     return $this->grumPHP->ignoreUnstagedChanges() && $context instanceof GitPreCommitContext;
 }