PHP Класс PHPUnit_Util_Skeleton_Class, qcodo

Автор: Sebastian Bergmann ([email protected])
Наследование: extends PHPUnit_Util_Skeleton
Показать файл Открыть проект

Открытые методы

Метод Описание
__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