src/PHPCoverFish/Common/CoverFishOutput.php
private function writeJsonFailureStream(
        CoverFishResult $coverFishResult,
        CoverFishPHPUnitTest $unitTest,
        CoverFishMessageError $mappingError,
        $coverLine
    ) {
        $this->jsonResult['errorCount'] = $coverFishResult->getFailureCount();
        $this->jsonResult['errorMessage'] = $mappingError->getMessageTitle();
        $this->jsonResult['errorCode'] = $mappingError->getMessageCode();
        $this->jsonResult['cover'] = $coverLine;
        $this->jsonResult['method'] = $unitTest->getSignature();
        $this->jsonResult['line'] = $unitTest->getLine();
        $this->jsonResult['file'] = $unitTest->getFile();
    }
private function writeJsonFailureStream(
        CoverFishResult $coverFishResult,
        CoverFishPHPUnitTest $unitTest,
        CoverFishMessageError $mappingError,
        $coverLine
    ) {
        $this->jsonResult['errorCount'] = $coverFishResult->getFailureCount();
        $this->jsonResult['errorMessage'] = $mappingError->getMessageTitle();
        $this->jsonResult['errorCode'] = $mappingError->getMessageCode();
        $this->jsonResult['cover'] = $coverLine;
        $this->jsonResult['method'] = $unitTest->getSignature();
        $this->jsonResult['line'] = $unitTest->getLine();
        $this->jsonResult['file'] = $unitTest->getFile();
    }
private function writeJsonFailureStream ( CoverFishResult $ coverFishResult , CoverFishPHPUnitTest $ unitTest , CoverFishMessageError $ mappingError , $ coverLine ) { $ this -> jsonResult [ 'errorCount' ] = $ coverFishResult -> getFailureCount ( ) ; $ this -> jsonResult [ 'errorMessage' ] = $ mappingError -> getMessageTitle ( ) ; $ this -> jsonResult [ 'errorCode' ] = $ mappingError -> getMessageCode ( ) ; $ this -> jsonResult [ 'cover' ] = $ coverLine ; $ this -> jsonResult [ 'method' ] = $ unitTest -> getSignature ( ) ; $ this -> jsonResult [ 'line' ] = $ unitTest -> getLine ( ) ; $ this -> jsonResult [ 'file' ] = $ unitTest -> getFile ( ) ; }
write single json error line

@param CoverFishResult       $coverFishResult
@param CoverFishPHPUnitTest  $unitTest
@param CoverFishMessageError $mappingError
@param $coverLine
write single json error line