/** * @test */ public function itShouldWorksFine() { $minimumStrictCoverage = MinimumStrictCoverageStub::create(90.0); $outputMessage = new PreCommitOutputWriter(StrictCoverageToolExecutor::EXECUTE_MESSAGE); $this->shouldWriteOutput($outputMessage->getMessage()); $this->shouldProcessStrictCoverage(91.0); $this->shouldWriteLnOutput($outputMessage->getSuccessfulMessage()); $command = new StrictCoverageCommand($minimumStrictCoverage->value(), $this->errorMessage); $this->strictCoverageToolCommandHandler->handle($command); }
/** * @return PhpUnitStrictCoverage */ public static function setUndefined() { return self::create(new Undefined(true), EnabledStub::create(false), MinimumStrictCoverageStub::create(null)); }