PhpGitHooks\Module\Configuration\Tests\Stub\CommitMsgStub::setUndefined PHP Метод

setUndefined() публичный статический Метод

public static setUndefined ( ) : CommitMsg
Результат PhpGitHooks\Module\Configuration\Domain\CommitMsg
    public static function setUndefined()
    {
        return self::create(new Undefined(true), new Enabled(false), RegularExpressionStub::create(null));
    }

Usage Example

 /**
  * @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());
 }
All Usage Examples Of PhpGitHooks\Module\Configuration\Tests\Stub\CommitMsgStub::setUndefined