PHP 클래스 SebastianBergmann\CodeCoverage\Node\File

상속: extends SebastianBergmann\CodeCoverage\Node\AbstractNode
파일 보기 프로젝트 열기: sebastianbergmann/php-code-coverage 1 사용 예제들

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
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 )

비공개 메소드들

메소드 설명
newMethod ( string $methodName, array $method, string $link ) : array

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $name, SebastianBergmann\CodeCoverage\Node\AbstractNode $parent, array $coverageData, array $testData, boolean $cacheTokens )
$name string
$parent SebastianBergmann\CodeCoverage\Node\AbstractNode
$coverageData array
$testData array
$cacheTokens boolean

calculateStatistics() 보호된 메소드

Calculates coverage statistics for the file.
protected calculateStatistics ( )

count() 공개 메소드

Returns the number of files in/under this node.
public count ( ) : integer
리턴 integer

crap() 보호된 메소드

Calculates the Change Risk Anti-Patterns (CRAP) index for a unit of code based on its cyclomatic complexity and percentage of code coverage.
protected crap ( integer $ccn, float $coverage ) : string
$ccn integer
$coverage float
리턴 string

getClasses() 공개 메소드

Returns the classes of this node.
public getClasses ( ) : array
리턴 array

getCoverageData() 공개 메소드

Returns the code coverage data of this node.
public getCoverageData ( ) : array
리턴 array

getFunctions() 공개 메소드

Returns the functions of this node.
public getFunctions ( ) : array
리턴 array

getLinesOfCode() 공개 메소드

Returns the LOC/CLOC/NCLOC of this node.
public getLinesOfCode ( ) : array
리턴 array

getNumClasses() 공개 메소드

Returns the number of classes.
public getNumClasses ( ) : integer
리턴 integer

getNumExecutableLines() 공개 메소드

Returns the number of executable lines.
public getNumExecutableLines ( ) : integer
리턴 integer

getNumExecutedLines() 공개 메소드

Returns the number of executed lines.
public getNumExecutedLines ( ) : integer
리턴 integer

getNumFunctions() 공개 메소드

Returns the number of functions.
public getNumFunctions ( ) : integer
리턴 integer

getNumMethods() 공개 메소드

Returns the number of methods.
public getNumMethods ( ) : integer
리턴 integer

getNumTestedClasses() 공개 메소드

Returns the number of tested classes.
public getNumTestedClasses ( ) : integer
리턴 integer

getNumTestedFunctions() 공개 메소드

Returns the number of tested functions.
public getNumTestedFunctions ( ) : integer
리턴 integer

getNumTestedMethods() 공개 메소드

Returns the number of tested methods.
public getNumTestedMethods ( ) : integer
리턴 integer

getNumTestedTraits() 공개 메소드

Returns the number of tested traits.
public getNumTestedTraits ( ) : integer
리턴 integer

getNumTraits() 공개 메소드

Returns the number of traits.
public getNumTraits ( ) : integer
리턴 integer

getTestData() 공개 메소드

Returns the test data of this node.
public getTestData ( ) : array
리턴 array

getTraits() 공개 메소드

Returns the traits of this node.
public getTraits ( ) : array
리턴 array

processClasses() 보호된 메소드

protected processClasses ( PHP_Token_Stream $tokens )
$tokens PHP_Token_Stream

processFunctions() 보호된 메소드

protected processFunctions ( PHP_Token_Stream $tokens )
$tokens PHP_Token_Stream

processTraits() 보호된 메소드

protected processTraits ( PHP_Token_Stream $tokens )
$tokens PHP_Token_Stream