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

itShouldWorksFine() public method

public itShouldWorksFine ( )
    public function itShouldWorksFine()
    {
        $outputMessage = new PreCommitOutputWriter(GuardCoverageTool::CHECKING_MESSAGE);
        $currentCoverage = 70.0;
        $previousCoverage = 60.0;
        $this->shouldProcessStrictCoverage($currentCoverage);
        $this->shouldWriteOutput($outputMessage->getMessage());
        $this->shouldReadGuardCoverage($previousCoverage);
        $this->shouldWriteLnOutput($this->buildStrictCoverageSuccessfulMessage($currentCoverage, $previousCoverage, $outputMessage->getSuccessfulMessage()));
        $this->shouldWriteGuardCoverage($currentCoverage);
        $this->guardCoverageToolCommandHandler->handle(new GuardCoverageCommand(HookQuestions::PHPUNIT_GUARD_COVERAGE_MESSAGE_DEFAULT));
    }