PhpGitHooks\Module\Tests\Infrastructure\Stub\StubCreator::faker PHP Method

faker() public static method

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

Usage Example

コード例 #1
0
 /**
  * @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