PhpGitHooks\Module\PhpUnit\Tests\Behaviour\GuardCoverageToolCommandHandlerTest::itShouldShowWarningMessage PHP Method

itShouldShowWarningMessage() public method

    public function itShouldShowWarningMessage()
    {
        $outputMessage = new PreCommitOutputWriter(GuardCoverageTool::CHECKING_MESSAGE);
        $currentCoverage = 60.0;
        $previousCoverage = 70.0;
        $this->shouldProcessStrictCoverage($currentCoverage);
        $this->shouldWriteOutput($outputMessage->getMessage());
        $this->shouldReadGuardCoverage($previousCoverage);
        $this->shouldWriteLnOutput(sprintf("\n<bg=yellow;options=bold>%s Previous coverage %s, current coverage %s.</>", HookQuestions::PHPUNIT_GUARD_COVERAGE_MESSAGE_DEFAULT, $previousCoverage, $currentCoverage));
        $this->shouldWriteGuardCoverage($currentCoverage);
        $this->guardCoverageToolCommandHandler->handle(new GuardCoverageCommand(HookQuestions::PHPUNIT_GUARD_COVERAGE_MESSAGE_DEFAULT));
    }