PHP Class Tester\Environment

显示文件 Open project: nette/tester Class Usage Examples

Public Properties

Property Type Description
$checkAssertions boolean
$debugMode used for debugging Tester itself
$useColors boolean

Public Methods

Method 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

Method Description
removeOutputBuffers ( )

Method Details

getTestAnnotations() public static method

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

handleException() public static method

public static handleException ( $e )

loadData() public static method

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

lock() public static method

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

setup() public static method

Configures testing environment.
public static setup ( ) : void
return void

setupColors() public static method

Configures colored output.
public static setupColors ( ) : void
return void

setupErrors() public static method

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

skip() public static method

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

Property Details

$checkAssertions public_oe static_oe property

public static bool $checkAssertions
return 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
return boolean