PhpGitHooks\Module\Git\Tests\Stub\FilesCommittedStub::createAllFiles PHP Method

createAllFiles() public static method

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

Usage Example

 /**
  * @test
  */
 public function itShouldReturnJsonFilesResponse()
 {
     $files = FilesCommittedStub::createAllFiles();
     $jsonFilesExtractorQueryHandler = new JsonFilesExtractorQueryHandler(new JsonFilesExtractor());
     $jsonFilesResponse = $jsonFilesExtractorQueryHandler->handle(new JsonFilesExtractorQuery($files));
     $this->assertInstanceOf(JsonFilesResponse::class, $jsonFilesResponse);
     $this->assertSame(1, count($jsonFilesResponse->getFiles()));
 }
All Usage Examples Of PhpGitHooks\Module\Git\Tests\Stub\FilesCommittedStub::createAllFiles