PhpGitHooks\Module\Tests\Infrastructure\Stub\StubCreator::faker PHP 메소드

faker() 공개 정적인 메소드

public static faker ( ) : Generator
리턴 Faker\Generator
    public static function faker()
    {
        return self::$faker = self::$faker ?: Factory::create();
    }

Usage Example

 /**
  * @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());
 }
All Usage Examples Of PhpGitHooks\Module\Tests\Infrastructure\Stub\StubCreator::faker
StubCreator