Lggr
|
Public Member Functions | |
__construct (Driver $driver=null, Filter $filter=null) | |
getReport () | |
clear () | |
filter () | |
getData ($raw=false) | |
setData (array $data) | |
getTests () | |
setTests (array $tests) | |
start ($id, $clear=false) | |
stop ($append=true, $linesToBeCovered=[], array $linesToBeUsed=[], $ignoreForceCoversAnnotation=false) | |
append (array $data, $id=null, $append=true, $linesToBeCovered=[], array $linesToBeUsed=[], $ignoreForceCoversAnnotation=false) | |
merge (self $that) | |
setCacheTokens ($flag) | |
getCacheTokens () | |
setCheckForUnintentionallyCoveredCode ($flag) | |
setForceCoversAnnotation ($flag) | |
setCheckForMissingCoversAnnotation ($flag) | |
setCheckForUnexecutedCoveredCode ($flag) | |
setMapTestClassNameToCoveredClassName ($flag) | |
setAddUncoveredFilesFromWhitelist ($flag) | |
setProcessUncoveredFilesFromWhitelist ($flag) | |
setDisableIgnoredLines ($flag) | |
setIgnoreDeprecatedCode ($flag) | |
setUnintentionallyCoveredSubclassesWhitelist (array $whitelist) | |
Protected Member Functions | |
initializeData () | |
Provides collection functionality for PHP code coverage information.
SebastianBergmann\CodeCoverage\CodeCoverage::append | ( | array | $data, |
$id = null , |
|||
$append = true , |
|||
$linesToBeCovered = [] , |
|||
array | $linesToBeUsed = [] , |
||
$ignoreForceCoversAnnotation = false |
|||
) |
Appends code coverage data.
array | $data | |
mixed | $id | |
bool | $append | |
mixed | $linesToBeCovered | |
array | $linesToBeUsed | |
bool | $ignoreForceCoversAnnotation |
SebastianBergmann\CodeCoverage\CodeCoverage::clear | ( | ) |
Clears collected code coverage data.
SebastianBergmann\CodeCoverage\CodeCoverage::filter | ( | ) |
Returns the filter object used.
SebastianBergmann\CodeCoverage\CodeCoverage::getCacheTokens | ( | ) |
SebastianBergmann\CodeCoverage\CodeCoverage::getData | ( | $raw = false | ) |
Returns the collected code coverage data. Set $raw = true to bypass all filters.
bool | $raw |
SebastianBergmann\CodeCoverage\CodeCoverage::getReport | ( | ) |
Returns the code coverage information as a graph of node objects.
SebastianBergmann\CodeCoverage\CodeCoverage::getTests | ( | ) |
Returns the test data.
|
protected |
If we are processing uncovered files from whitelist, we can initialize the data before we start to speed up the tests
SebastianBergmann\CodeCoverage\CodeCoverage::merge | ( | self | $that | ) |
Merges the data from another instance.
CodeCoverage | $that |
SebastianBergmann\CodeCoverage\CodeCoverage::setAddUncoveredFilesFromWhitelist | ( | $flag | ) |
bool | $flag |
InvalidArgumentException |
SebastianBergmann\CodeCoverage\CodeCoverage::setCacheTokens | ( | $flag | ) |
bool | $flag |
InvalidArgumentException |
SebastianBergmann\CodeCoverage\CodeCoverage::setCheckForMissingCoversAnnotation | ( | $flag | ) |
bool | $flag |
InvalidArgumentException |
SebastianBergmann\CodeCoverage\CodeCoverage::setCheckForUnexecutedCoveredCode | ( | $flag | ) |
bool | $flag |
InvalidArgumentException |
SebastianBergmann\CodeCoverage\CodeCoverage::setCheckForUnintentionallyCoveredCode | ( | $flag | ) |
bool | $flag |
InvalidArgumentException |
SebastianBergmann\CodeCoverage\CodeCoverage::setData | ( | array | $data | ) |
Sets the coverage data.
array | $data |
SebastianBergmann\CodeCoverage\CodeCoverage::setDisableIgnoredLines | ( | $flag | ) |
bool | $flag |
InvalidArgumentException |
SebastianBergmann\CodeCoverage\CodeCoverage::setForceCoversAnnotation | ( | $flag | ) |
bool | $flag |
InvalidArgumentException |
SebastianBergmann\CodeCoverage\CodeCoverage::setIgnoreDeprecatedCode | ( | $flag | ) |
bool | $flag |
InvalidArgumentException |
SebastianBergmann\CodeCoverage\CodeCoverage::setMapTestClassNameToCoveredClassName | ( | $flag | ) |
SebastianBergmann\CodeCoverage\CodeCoverage::setProcessUncoveredFilesFromWhitelist | ( | $flag | ) |
bool | $flag |
InvalidArgumentException |
SebastianBergmann\CodeCoverage\CodeCoverage::setTests | ( | array | $tests | ) |
Sets the test data.
array | $tests |
SebastianBergmann\CodeCoverage\CodeCoverage::setUnintentionallyCoveredSubclassesWhitelist | ( | array | $whitelist | ) |
array | $whitelist |
SebastianBergmann\CodeCoverage\CodeCoverage::start | ( | $id, | |
$clear = false |
|||
) |
Start collection of code coverage information.
mixed | $id | |
bool | $clear |
InvalidArgumentException |
SebastianBergmann\CodeCoverage\CodeCoverage::stop | ( | $append = true , |
|
$linesToBeCovered = [] , |
|||
array | $linesToBeUsed = [] , |
||
$ignoreForceCoversAnnotation = false |
|||
) |
Stop collection of code coverage information.
bool | $append | |
mixed | $linesToBeCovered | |
array | $linesToBeUsed | |
bool | $ignoreForceCoversAnnotation |