PHP 클래스 PHPUnit_Util_Test, phpunit

저자: Sebastian Bergmann ([email protected])
파일 보기 프로젝트 열기: sebastianbergmann/phpunit 1 사용 예제들

공개 메소드들

메소드 설명
describe ( PHPUnit_Framework_Test $test, boolean $asString = true ) : mixed
getBackupSettings ( string $className, string $methodName ) : array Returns the backup settings for a test.
getDataFromTestWithAnnotation ( string $docComment ) : array
getDependencies ( string $className, string $methodName ) : array Returns the dependencies for a test class or method.
getErrorHandlerSettings ( string $className, string $methodName ) : boolean Returns the error handler settings for a test.
getExpectedException ( string $className, string $methodName ) : array Returns the expected exception for a test.
getGroups ( string $className, string $methodName = '' ) : array Returns the groups for a test class or method.
getHookMethods ( string $className ) : array
getInlineAnnotations ( string $className, string $methodName ) : array
getLinesToBeCovered ( string $className, string $methodName ) : array | boolean
getLinesToBeUsed ( string $className, string $methodName ) : array Returns lines of code specified with the @uses annotation.
getMissingRequirements ( string $className, string $methodName ) : array Returns the missing requirements for a test.
getPreserveGlobalStateSettings ( string $className, string $methodName ) : boolean Returns the preserve global state settings for a test.
getProcessIsolationSettings ( string $className, string $methodName ) : boolean Returns the process isolation settings for a test.
getProvidedData ( string $className, string $methodName ) : array | Iterator Returns the provided data for a method.
getRequirements ( string $className, string $methodName ) : array Returns the requirements for a test.
getSize ( string $className, string $methodName ) : integer Returns the size of the test.
parseTestMethodAnnotations ( string $className, string $methodName = '' ) : array

비공개 메소드들

메소드 설명
cleanUpMultiLineAnnotation ( $docComment )
emptyHookMethodsArray ( ) : array
getBooleanAnnotationSetting ( string $className, string $methodName, string $settingName ) : boolean
getDataFromDataProviderAnnotation ( string $docComment, string $className, string $methodName ) : array | Iterator Returns the provided data for a method.
getLinesToBeCoveredOrUsed ( string $className, string $methodName, string $mode ) : array
isAfterClassMethod ( ReflectionMethod $method ) : boolean
isAfterMethod ( ReflectionMethod $method ) : boolean
isBeforeClassMethod ( ReflectionMethod $method ) : boolean
isBeforeMethod ( ReflectionMethod $method ) : boolean
parseAnnotationContent ( string $message ) : string Parse annotation content to use constant/class constant values
parseAnnotations ( string $docblock ) : array
resolveElementToReflectionObjects ( string $element ) : array
resolveReflectionObjectsToLines ( array $reflectors ) : array

메소드 상세

describe() 공개 정적인 메소드

public static describe ( PHPUnit_Framework_Test $test, boolean $asString = true ) : mixed
$test PHPUnit_Framework_Test
$asString boolean
리턴 mixed

getBackupSettings() 공개 정적인 메소드

Returns the backup settings for a test.
public static getBackupSettings ( string $className, string $methodName ) : array
$className string
$methodName string
리턴 array

getDataFromTestWithAnnotation() 공개 정적인 메소드

public static getDataFromTestWithAnnotation ( string $docComment ) : array
$docComment string full docComment string
리턴 array when @testWith annotation is defined null when @testWith annotation is omitted

getDependencies() 공개 정적인 메소드

Returns the dependencies for a test class or method.
public static getDependencies ( string $className, string $methodName ) : array
$className string
$methodName string
리턴 array

getErrorHandlerSettings() 공개 정적인 메소드

Returns the error handler settings for a test.
public static getErrorHandlerSettings ( string $className, string $methodName ) : boolean
$className string
$methodName string
리턴 boolean

getExpectedException() 공개 정적인 메소드

Returns the expected exception for a test.
public static getExpectedException ( string $className, string $methodName ) : array
$className string
$methodName string
리턴 array

getGroups() 공개 정적인 메소드

Returns the groups for a test class or method.
public static getGroups ( string $className, string $methodName = '' ) : array
$className string
$methodName string
리턴 array

getHookMethods() 공개 정적인 메소드

public static getHookMethods ( string $className ) : array
$className string
리턴 array

getInlineAnnotations() 공개 정적인 메소드

public static getInlineAnnotations ( string $className, string $methodName ) : array
$className string
$methodName string
리턴 array

getLinesToBeCovered() 공개 정적인 메소드

public static getLinesToBeCovered ( string $className, string $methodName ) : array | boolean
$className string
$methodName string
리턴 array | boolean

getLinesToBeUsed() 공개 정적인 메소드

Returns lines of code specified with the @uses annotation.
public static getLinesToBeUsed ( string $className, string $methodName ) : array
$className string
$methodName string
리턴 array

getMissingRequirements() 공개 정적인 메소드

Returns the missing requirements for a test.
public static getMissingRequirements ( string $className, string $methodName ) : array
$className string
$methodName string
리턴 array

getPreserveGlobalStateSettings() 공개 정적인 메소드

Returns the preserve global state settings for a test.
public static getPreserveGlobalStateSettings ( string $className, string $methodName ) : boolean
$className string
$methodName string
리턴 boolean

getProcessIsolationSettings() 공개 정적인 메소드

Returns the process isolation settings for a test.
public static getProcessIsolationSettings ( string $className, string $methodName ) : boolean
$className string
$methodName string
리턴 boolean

getProvidedData() 공개 정적인 메소드

Returns the provided data for a method.
public static getProvidedData ( string $className, string $methodName ) : array | Iterator
$className string
$methodName string
리턴 array | Iterator when a data provider is specified and exists null when no data provider is specified

getRequirements() 공개 정적인 메소드

Returns the requirements for a test.
public static getRequirements ( string $className, string $methodName ) : array
$className string
$methodName string
리턴 array

getSize() 공개 정적인 메소드

Returns the size of the test.
public static getSize ( string $className, string $methodName ) : integer
$className string
$methodName string
리턴 integer

parseTestMethodAnnotations() 공개 정적인 메소드

public static parseTestMethodAnnotations ( string $className, string $methodName = '' ) : array
$className string
$methodName string
리턴 array