PHP 클래스 Tester\Environment

파일 보기 프로젝트 열기: nette/tester 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$checkAssertions boolean
$debugMode used for debugging Tester itself
$useColors boolean

공개 메소드들

메소드 설명
getTestAnnotations ( ) : array Returns current test annotations.
handleException ( $e )
loadData ( ) : array Loads data according to the file annotation or specified by Tester\Runner\TestHandler::initiateDataProvider()
lock ( $name = '', $path = '' ) : void Locks the parallel tests.
setup ( ) : void Configures testing environment.
setupColors ( ) : void Configures colored output.
setupErrors ( ) : void Configures PHP error handling.
skip ( $message = '' ) : void Skips this test.

비공개 메소드들

메소드 설명
removeOutputBuffers ( )

메소드 상세

getTestAnnotations() 공개 정적인 메소드

Returns current test annotations.
public static getTestAnnotations ( ) : array
리턴 array

handleException() 공개 정적인 메소드

public static handleException ( $e )

loadData() 공개 정적인 메소드

Loads data according to the file annotation or specified by Tester\Runner\TestHandler::initiateDataProvider()
public static loadData ( ) : array
리턴 array

lock() 공개 정적인 메소드

Locks the parallel tests.
public static lock ( $name = '', $path = '' ) : void
리턴 void

setup() 공개 정적인 메소드

Configures testing environment.
public static setup ( ) : void
리턴 void

setupColors() 공개 정적인 메소드

Configures colored output.
public static setupColors ( ) : void
리턴 void

setupErrors() 공개 정적인 메소드

Configures PHP error handling.
public static setupErrors ( ) : void
리턴 void

skip() 공개 정적인 메소드

Skips this test.
public static skip ( $message = '' ) : void
리턴 void

프로퍼티 상세

$checkAssertions 공개적으로 정적으로 프로퍼티

public static bool $checkAssertions
리턴 boolean

$debugMode 공개적으로 정적으로 프로퍼티

used for debugging Tester itself
public static $debugMode

$useColors 공개적으로 정적으로 프로퍼티

public static bool $useColors
리턴 boolean