PHP 클래스 PHPUnit_Util_Skeleton_Class, qcodo

저자: Sebastian Bergmann ([email protected])
상속: extends PHPUnit_Util_Skeleton
파일 보기 프로젝트 열기: qcodo/qcodo

공개 메소드들

메소드 설명
__construct ( string $inClassName, string $inSourceFile = '', string $outClassName = '', string $outSourceFile = '' ) Constructor.
generate ( ) : mixed Generates the class' source.

보호된 메소드들

메소드 설명
findTestedMethods ( ) : array Returns the methods of the class under test that are called from the test methods.
findVariableName ( array $tokens, integer $start ) : mixed Finds the variable name of the object for the method call that is currently being processed.
findVariablesThatReferenceClass ( array $tokens ) : array Returns the variables used in test methods that reference the class under test.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $inClassName, string $inSourceFile = '', string $outClassName = '', string $outSourceFile = '' )
$inClassName string
$inSourceFile string
$outClassName string
$outSourceFile string

findTestedMethods() 보호된 메소드

Returns the methods of the class under test that are called from the test methods.
protected findTestedMethods ( ) : array
리턴 array

findVariableName() 보호된 메소드

Finds the variable name of the object for the method call that is currently being processed.
protected findVariableName ( array $tokens, integer $start ) : mixed
$tokens array
$start integer
리턴 mixed

findVariablesThatReferenceClass() 보호된 메소드

Returns the variables used in test methods that reference the class under test.
protected findVariablesThatReferenceClass ( array $tokens ) : array
$tokens array
리턴 array

generate() 공개 메소드

Generates the class' source.
public generate ( ) : mixed
리턴 mixed