PhpGitHooks\Module\Git\Tests\Behaviour\CommitMsgCommandHandlerTest::itShouldThrowsException PHP Метод

itShouldThrowsException() публичный Метод

    public function itShouldThrowsException()
    {
        $this->expectException(InvalidCommitMessageException::class);
        $configurationDataResponse = ConfigurationDataResponseStub::createCustom(true, true, true);
        $this->shouldHandleQuery(new ConfigurationDataFinderQuery(), $configurationDataResponse);
        $this->shouldGetInputFirstArgument('file');
        $this->shouldFindCommitMessage('file', 'invalid commit message');
        $this->shouldCallIsMerge(false);
        $this->commitMsgCommandHandler->handle(new CommitMsgCommand($this->getInput()));
    }