PhpGitHooks\Module\PhpUnit\Tests\Behaviour\StrictCoverageToolCommandHandlerTest::itShouldThrowsException PHP Метод

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

    public function itShouldThrowsException()
    {
        $this->expectException(InvalidStrictCoverageException::class);
        $minimumStrictCoverage = MinimumStrictCoverageStub::create(90.0);
        $outputMessage = new PreCommitOutputWriter(StrictCoverageToolExecutor::EXECUTE_MESSAGE);
        $this->shouldWriteOutput($outputMessage->getMessage());
        $this->shouldProcessStrictCoverage(0.0);
        $this->shouldWriteLnOutput(BadJobLogoResponse::paint($this->errorMessage));
        $command = new StrictCoverageCommand($minimumStrictCoverage->value(), $this->errorMessage);
        $this->strictCoverageToolCommandHandler->handle($command);
    }