PHP Class Tester\TestCase

Show file Open project: nette/tester Class Usage Examples

Public Methods

Method Description
run ( ) : void Runs the test case.
runTest ( $method, array $args = NULL ) : void Runs the test method.

Protected Methods

Method Description
getData ( $provider ) : array
setUp ( ) : void This method is called before a test is executed.
tearDown ( ) : void This method is called after a test is executed.

Private Methods

Method Description
silentTearDown ( )

Method Details

getData() protected method

protected getData ( $provider ) : array
return array

run() public method

Runs the test case.
public run ( ) : void
return void

runTest() public method

Runs the test method.
public runTest ( $method, array $args = NULL ) : void
$args array
return void

setUp() protected method

This method is called before a test is executed.
protected setUp ( ) : void
return void

tearDown() protected method

This method is called after a test is executed.
protected tearDown ( ) : void
return void