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