PHP Class Mutagenesis\Runner\Mutation

Inheritance: extends RunnerAbstract
Datei anzeigen Open project: padraic/mutagenesis

Protected Properties

Property Type Description
$_mutation array Array containing all data and objects required for applying a mutation
$_testCasesInExecutionOrder array Test Cases to process in a specific execution order

Public Methods

Method Description
execute ( boolean $firstRun = false ) : void Execute the runner. If the initial test run to check all tests are in a passing state, should pass TRUE as first parameter. This will attempt to have the testing framework log execution times of test cases so that subsequent runs run test cases in their order of execution times ascending
getMutation ( ) Get the applicable mutation for this run
setMutation ( string $mutation ) Set a string containing the serialised form a generated mutation and unserialise it into a usable form
setTestCasesInExecutionOrder ( $testCases )

Method Details

execute() public method

Execute the runner. If the initial test run to check all tests are in a passing state, should pass TRUE as first parameter. This will attempt to have the testing framework log execution times of test cases so that subsequent runs run test cases in their order of execution times ascending
public execute ( boolean $firstRun = false ) : void
$firstRun boolean Indicates if first run of tests
return void

getMutation() public method

Get the applicable mutation for this run
public getMutation ( )

setMutation() public method

Set a string containing the serialised form a generated mutation and unserialise it into a usable form
public setMutation ( string $mutation )
$mutation string Serialized mutation data

setTestCasesInExecutionOrder() public method

public setTestCasesInExecutionOrder ( $testCases )

Property Details

$_mutation protected_oe property

Array containing all data and objects required for applying a mutation
protected array $_mutation
return array

$_testCasesInExecutionOrder protected_oe property

Test Cases to process in a specific execution order
protected array $_testCasesInExecutionOrder
return array