PhpGitHooks\Module\Git\Tests\Stub\FilesCommittedStub::createWithoutJsonFiles PHP Метод

createWithoutJsonFiles() публичный статический Метод

public static createWithoutJsonFiles ( )
    public static function createWithoutJsonFiles()
    {
        $generator = StubCreator::faker();
        return self::create([$generator->sha1, '/path1/path2/file1.php', '/path1/path2/file2.php', '/path1/path2/file3.php']);
    }

Usage Example

 /**
  * @test
  */
 public function itShouldNotExecuteTool()
 {
     $files = FilesCommittedStub::createWithoutJsonFiles();
     $this->shouldHandleQuery(new JsonFilesExtractorQuery($files), JsonFilesResponseStub::createNoData());
     $this->jsonLintToolCommandHandler->handle(new JsonLintToolCommand($files, $this->errorMessage));
 }