/**
  * @param bool $preCommit
  * @param bool $commitMsg
  * @param bool $prePush
  *
  * @return ConfigurationDataResponse
  */
 public static function createCustom($preCommit, $commitMsg, $prePush)
 {
     return self::create(PreCommitResponseStub::create($preCommit, PreCommitResponseStub::GOOD_JOB, PreCommitResponseStub::FIX_YOUR_CODE, $preCommit, $preCommit, $preCommit, PhpMdResponseStub::create($preCommit, PhpMdResponseStub::OPTIONS), PhpCsResponseStub::create($preCommit, PhpCsResponseStub::STANDARD), PhpCsFixerResponseStub::create($preCommit, $preCommit, $preCommit, $preCommit, $preCommit), PhpUnitResponseStub::create($preCommit, $preCommit, PhpUnitResponseStub::OPTIONS), PhpUnitStrictCoverageResponseStub::create($preCommit, PhpUnitStrictCoverageResponseStub::MINIMUM), PhpUnitGuardCoverageResponseStub::create($preCommit, PhpUnitGuardCoverageResponseStub::WARNING_MESSAGE)), CommitMsgResponseStub::create($commitMsg, CommitMsgResponseStub::REGULAR_EXPRESSION), PrePushResponseStub::create($prePush, PrePushResponseStub::RIGHT_MESSAGE, PrePushResponseStub::ERROR_MESSAGE, PhpUnitResponseStub::create($prePush, $prePush, PhpUnitResponseStub::OPTIONS), PhpUnitStrictCoverageResponseStub::create($prePush, PhpUnitStrictCoverageResponseStub::MINIMUM), PhpUnitGuardCoverageResponseStub::create($prePush, PhpUnitGuardCoverageResponseStub::WARNING_MESSAGE)));
 }
Пример #2
0
 /**
  * @return PreCommitResponse
  */
 public static function createAllEnabled()
 {
     $bool = true;
     return self::create($bool, static::GOOD_JOB, static::FIX_YOUR_CODE, $bool, $bool, $bool, PhpMdResponseStub::createEnabled(), PhpCsResponseStub::createEnabled(), PhpCsFixerResponseStub::createEnabled(), PhpUnitResponseStub::createEnabled(), PhpUnitStrictCoverageResponseStub::createEnabled(), PhpUnitGuardCoverageResponseStub::createEnabled());
 }
Пример #3
0
 /**
  * @return PrePushResponse
  */
 public static function createAllEnabled()
 {
     return new PrePushResponse(true, self::RIGHT_MESSAGE, self::ERROR_MESSAGE, PhpUnitResponseStub::createEnabled(), PhpUnitStrictCoverageResponseStub::createEnabled(), PhpUnitGuardCoverageResponseStub::createEnabled());
 }