public static setUndefined ( ) : |
||
Результат |
/** * @test */ public function itShouldDisableHook() { $this->shouldAsk(HookQuestions::COMMIT_MSG_HOOK, HookQuestions::DEFAULT_TOOL_ANSWER, 'n'); $commitMsg = $this->commitMsgProcessor->process(CommitMsgStub::setUndefined(), $this->getIOInterface()); $this->assertFalse($commitMsg->isUndefined()); $this->assertFalse($commitMsg->isEnabled()); $this->assertNull($commitMsg->getRegularExpression()->value()); }
/** * @return Config */ public static function createUndefined() { return self::create(PreCommitStub::createUndefined(), CommitMsgStub::setUndefined(), PrePushStub::setUndefined()); }