PhpGitHooks\Module\Configuration\Tests\Stub\PrePushExecuteStub::create PHP 메소드

create() 공개 정적인 메소드

public static create ( PhpUnit $phpUnit, PhpUnitStrictCoverage $strictCoverage, PhpUnitGuardCoverage $guardCoverage ) : Execute
$phpUnit PhpGitHooks\Module\Configuration\Domain\PhpUnit
$strictCoverage PhpGitHooks\Module\Configuration\Domain\PhpUnitStrictCoverage
$guardCoverage PhpGitHooks\Module\Configuration\Domain\PhpUnitGuardCoverage
리턴 PhpGitHooks\Module\Configuration\Domain\Execute
    public static function create(PhpUnit $phpUnit, PhpUnitStrictCoverage $strictCoverage, PhpUnitGuardCoverage $guardCoverage)
    {
        return new Execute([$phpUnit, $strictCoverage, $guardCoverage]);
    }

Usage Example

예제 #1
0
 /**
  * @return PrePush
  */
 public static function setUndefined()
 {
     return self::create(new Undefined(true), EnabledStub::create(false), PrePushExecuteStub::create(PhpUnitStub::setUndefined(), PhpUnitStrictCoverageStub::setUndefined(), PhpUnitGuardCoverageStub::setUndefined()), MessagesStub::random());
 }
PrePushExecuteStub