PHP Class Tester\Environment

Afficher le fichier Open project: nette/tester Class Usage Examples

Méthodes publiques

Свойство Type Description
$checkAssertions boolean
$debugMode used for debugging Tester itself
$useColors boolean

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
removeOutputBuffers ( )

Method Details

getTestAnnotations() public static méthode

Returns current test annotations.
public static getTestAnnotations ( ) : array
Résultat array

handleException() public static méthode

public static handleException ( $e )

loadData() public static méthode

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

lock() public static méthode

Locks the parallel tests.
public static lock ( $name = '', $path = '' ) : void
Résultat void

setup() public static méthode

Configures testing environment.
public static setup ( ) : void
Résultat void

setupColors() public static méthode

Configures colored output.
public static setupColors ( ) : void
Résultat void

setupErrors() public static méthode

Configures PHP error handling.
public static setupErrors ( ) : void
Résultat void

skip() public static méthode

Skips this test.
public static skip ( $message = '' ) : void
Résultat void

Property Details

$checkAssertions public_oe static_oe property

public static bool $checkAssertions
Résultat boolean

$debugMode public_oe static_oe property

used for debugging Tester itself
public static $debugMode

$useColors public_oe static_oe property

public static bool $useColors
Résultat boolean