PhpGitHooks\Module\Configuration\Tests\Stub\PrePushExecuteStub::create PHP Method

create() public static method

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
return PhpGitHooks\Module\Configuration\Domain\Execute
    public static function create(PhpUnit $phpUnit, PhpUnitStrictCoverage $strictCoverage, PhpUnitGuardCoverage $guardCoverage)
    {
        return new Execute([$phpUnit, $strictCoverage, $guardCoverage]);
    }

Usage Example

Ejemplo n.º 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