/**
  * @test
  */
 public function itShouldNotExecuteTools()
 {
     $this->shouldWriteTitle(PreCommitTool::TITLE, 'title');
     $this->shouldGetFilesCommitted([StubCreator::faker()->sha1]);
     $this->shouldWriteLnOutput(PreCommitTool::NO_FILES_CHANGED_MESSAGE);
     $this->preCommitToolCommandHandler->handle(new PreCommitToolCommand());
 }
 /**
  * @test
  */
 public function itShouldWriteData()
 {
     $content = StubCreator::faker()->text();
     $this->shouldWriteData($content);
     $commandHandler = new GitIgnoreWriterCommandHandler(new GitIgnoreWriter($this->getWriter()));
     $commandHandler->handle(new GitIgnoreWriterCommand($content));
 }
 /**
  * @return array
  */
 public static function createOnlyPhpFiles()
 {
     $files = [StubCreator::faker()->sha1, '/path1/path2/file1.php', '/path1/path2/file2.php', '/path1/path2/file3.php', 'file2.inc', 'file3.inc'];
     return self::create($files);
 }
 /**
  * @return PhpCsFixerOptions
  */
 public static function random()
 {
     return self::create(StubCreator::faker()->word);
 }
 /**
  * @return MinimumStrictCoverage
  */
 public static function random()
 {
     return self::create(StubCreator::faker()->randomFloat(2, 0, 100));
 }
 /**
  * @return RegularExpression
  */
 public static function random()
 {
     $expression = [null, StubCreator::faker()->word];
     return self::create($expression[array_rand($expression)]);
 }