PHP Class Mutagenesis\Adapter\AdapterAbstract

ファイルを表示 Open project: padraic/mutagenesis Class Usage Examples

Protected Properties

Property Type Description
$_output string Output from the test library in use

Public Methods

Method Description
getOutput ( ) : string Get the test library output
runTests ( Base $runner, boolean $useStdout = false, boolean $firstRun = false, array $mutation = [], array $testCases = [] ) : array Runs the tests suite according to Runner set options and the execution order of test case (if any). It then returns an array of two elements.
setOutput ( string $output ) Set the test library output so it can be used later

Method Details

getOutput() public method

Get the test library output
public getOutput ( ) : string
return string

runTests() abstract public method

First element is a boolean result value indicating if tests passed or not. Second element is an array containing the key "stdout" which stores the output from the last test run.
abstract public runTests ( Base $runner, boolean $useStdout = false, boolean $firstRun = false, array $mutation = [], array $testCases = [] ) : array
$runner Mutagenesis\Runner\Base
$useStdout boolean
$firstRun boolean
$mutation array
$testCases array
return array

setOutput() public method

Set the test library output so it can be used later
public setOutput ( string $output )
$output string

Property Details

$_output protected_oe property

Output from the test library in use
protected string $_output
return string