Method | Description | |
---|---|---|
__construct ( string $name, SebastianBergmann\CodeCoverage\Node\AbstractNode $parent, array $coverageData, array $testData, boolean $cacheTokens ) | Constructor. | |
count ( ) : integer | Returns the number of files in/under this node. | |
getClasses ( ) : array | Returns the classes of this node. | |
getCoverageData ( ) : array | Returns the code coverage data of this node. | |
getFunctions ( ) : array | Returns the functions of this node. | |
getLinesOfCode ( ) : array | Returns the LOC/CLOC/NCLOC of this node. | |
getNumClasses ( ) : integer | Returns the number of classes. | |
getNumExecutableLines ( ) : integer | Returns the number of executable lines. | |
getNumExecutedLines ( ) : integer | Returns the number of executed lines. | |
getNumFunctions ( ) : integer | Returns the number of functions. | |
getNumMethods ( ) : integer | Returns the number of methods. | |
getNumTestedClasses ( ) : integer | Returns the number of tested classes. | |
getNumTestedFunctions ( ) : integer | Returns the number of tested functions. | |
getNumTestedMethods ( ) : integer | Returns the number of tested methods. | |
getNumTestedTraits ( ) : integer | Returns the number of tested traits. | |
getNumTraits ( ) : integer | Returns the number of traits. | |
getTestData ( ) : array | Returns the test data of this node. | |
getTraits ( ) : array | Returns the traits of this node. |
Method | Description | |
---|---|---|
calculateStatistics ( ) | Calculates coverage statistics for the file. | |
crap ( integer $ccn, float $coverage ) : string | Calculates the Change Risk Anti-Patterns (CRAP) index for a unit of code based on its cyclomatic complexity and percentage of code coverage. | |
processClasses ( PHP_Token_Stream $tokens ) | ||
processFunctions ( PHP_Token_Stream $tokens ) | ||
processTraits ( PHP_Token_Stream $tokens ) |
Method | Description | |
---|---|---|
newMethod ( string $methodName, array $method, string $link ) : array |
protected calculateStatistics ( ) |
public getClasses ( ) : array | ||
return | array |
public getCoverageData ( ) : array | ||
return | array |
public getFunctions ( ) : array | ||
return | array |
public getLinesOfCode ( ) : array | ||
return | array |
public getNumClasses ( ) : integer | ||
return | integer |
public getNumExecutableLines ( ) : integer | ||
return | integer |
public getNumExecutedLines ( ) : integer | ||
return | integer |
public getNumFunctions ( ) : integer | ||
return | integer |
public getNumMethods ( ) : integer | ||
return | integer |
public getNumTestedClasses ( ) : integer | ||
return | integer |
public getNumTestedFunctions ( ) : integer | ||
return | integer |
public getNumTestedMethods ( ) : integer | ||
return | integer |
public getNumTestedTraits ( ) : integer | ||
return | integer |
public getNumTraits ( ) : integer | ||
return | integer |
public getTestData ( ) : array | ||
return | array |
protected processClasses ( PHP_Token_Stream $tokens ) | ||
$tokens | PHP_Token_Stream |
protected processFunctions ( PHP_Token_Stream $tokens ) | ||
$tokens | PHP_Token_Stream |
protected processTraits ( PHP_Token_Stream $tokens ) | ||
$tokens | PHP_Token_Stream |