CloverXmlCoverageCollector
in package
Coverage collector for clover.xml.
Tags
Table of Contents
Properties
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
$jsonFile
JsonFile.
protected
JsonFile
$jsonFile
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
JsonFilegetJsonFile()
Return json file.
public
getJsonFile() : JsonFile
Return values
JsonFilecollectCoverage()
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
SourceFilecollectFileCoverage()
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|SourceFilecollectRunAt()
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