PHP Class Controller_Tester, atk4

See Documentation for testing.
Inheritance: extends Page
Show file Open project: atk4/atk4

Public Properties

Property Type Description
$auto_test boolean
$cnt integer
$form Form
$grid Grid
$input mixed
$proper_responses Redefine this to the value generated by a test
$responses array | string
$variances array

Public Methods

Method Description
_prepare ( $t, $str )
executeTest ( $test_obj, $test_func, $input )
expect ( $value, $expectation )
formatResult ( &$row, $key, $result )
init ( )
runTests ( $test_obj = null )
setVariance ( $arr )
silentTest ( $test_obj = null )
skipTests ( $msg = null )
ticker ( )

Method Details

_prepare() public method

public _prepare ( $t, $str )

executeTest() public method

public executeTest ( $test_obj, $test_func, $input )

expect() public method

public expect ( $value, $expectation )

formatResult() public method

public formatResult ( &$row, $key, $result )

init() public method

public init ( )

runTests() public method

public runTests ( $test_obj = null )

setVariance() public method

public setVariance ( $arr )

silentTest() public method

public silentTest ( $test_obj = null )

skipTests() public method

public skipTests ( $msg = null )

ticker() public method

public ticker ( )

Property Details

$auto_test public property

public bool $auto_test
return boolean

$cnt public property

public int $cnt
return integer

$form public property

public Form $form
return Form

$grid public property

public Grid $grid
return Grid

$input public property

public mixed $input
return mixed

$proper_responses public property

Redefine this to the value generated by a test
public $proper_responses

$responses public property

public array|string $responses
return array | string

$variances public property

public array $variances
return array