Documentation

CloverXmlCoverageCollector
in package

Coverage collector for clover.xml.

Tags
author

Kitamura Satoshi with.no.parachute@gmail.com

Table of Contents

Properties

$jsonFile  : JsonFile
JsonFile.

Methods

collect()  : JsonFile
Collect coverage from XML object.
getJsonFile()  : JsonFile
Return json file.
collectCoverage()  : SourceFile
Collect coverage data.
collectFileCoverage()  : null|SourceFile
Collect coverage data of a file.
collectRunAt()  : string
Collect timestamp when the job ran.

Properties

Methods

collect()

Collect coverage from XML object.

public collect(SimpleXMLElement $xml, string $rootDir) : JsonFile
Parameters
$xml : SimpleXMLElement

clover XML object

$rootDir : string

path to repository root directory

Return values
JsonFile

collectCoverage()

Collect coverage data.

protected collectCoverage(SimpleXMLElement $file, string $path, string $filename) : SourceFile
Parameters
$file : SimpleXMLElement

clover XML object of a file

$path : string

path to source file

$filename : string

filename

Return values
SourceFile

collectFileCoverage()

Collect coverage data of a file.

protected collectFileCoverage(SimpleXMLElement $file, string $root) : null|SourceFile
Parameters
$file : SimpleXMLElement

clover XML object of a file

$root : string

path to src directory

Return values
null|SourceFile

collectRunAt()

Collect timestamp when the job ran.

protected collectRunAt(SimpleXMLElement $xml[, string $format = 'Y-m-d H:i:s O' ]) : string
Parameters
$xml : SimpleXMLElement

clover XML object of a file

$format : string = 'Y-m-d H:i:s O'

dateTime format

Return values
string

        
On this page

Search results