PHP Interface Hal\MutaTesting\Runner\Adapter\AdapterInterface

Show file Open project: halleck45/mutatesting

Public Methods

Method Description
createFileSystemMock ( Hal\MutaTesting\Mutation\MutationInterface $mutation ) : string create a bootstrapper to mock file system: the file mentionned in the mutation will be virtualized in the application and replaced with own mutated file
getBinary ( ) : string Get the binary used to run tests
getOptions ( ) : array Get default options used to run tests
getSuiteResult ( string $logPath ) : Hal\MutaTesting\Test\UnitCollectionInterface Get results of unit test suites by the file where the junit result is logged
getTestDirectory ( ) : string Get the directory where test (root) are located
parseTestedFiles ( Hal\MutaTesting\Test\UnitInterface &$unit ) : Hal\MutaTesting\Test\UnitInterface Parse tested files of the unit test and injects them in Unit::setTestedFiles()
run ( string $path = null, array $options = [], string $logFile = null, string $prependFile = null, callable $callback = null ) : string Run tests
runMutation ( Hal\MutaTesting\Mutation\MutationInterface &$mutation, $options = [], $logFile = null, $prependFile = null ) : Hal\MutaTesting\Test\UnitInterface Runs a mutation
runTests ( Hal\MutaTesting\Test\UnitCollectionInterface $collection, array $options = [], string $logFile = null, string $prependFile = null ) Run specific tests

Method Details

createFileSystemMock() public method

create a bootstrapper to mock file system: the file mentionned in the mutation will be virtualized in the application and replaced with own mutated file
public createFileSystemMock ( Hal\MutaTesting\Mutation\MutationInterface $mutation ) : string
$mutation Hal\MutaTesting\Mutation\MutationInterface
return string

getBinary() public method

Get the binary used to run tests
public getBinary ( ) : string
return string

getOptions() public method

Get default options used to run tests
public getOptions ( ) : array
return array

getSuiteResult() public method

Get results of unit test suites by the file where the junit result is logged
public getSuiteResult ( string $logPath ) : Hal\MutaTesting\Test\UnitCollectionInterface
$logPath string
return Hal\MutaTesting\Test\UnitCollectionInterface

getTestDirectory() public method

Get the directory where test (root) are located
public getTestDirectory ( ) : string
return string

parseTestedFiles() public method

Parse tested files of the unit test and injects them in Unit::setTestedFiles()
public parseTestedFiles ( Hal\MutaTesting\Test\UnitInterface &$unit ) : Hal\MutaTesting\Test\UnitInterface
$unit Hal\MutaTesting\Test\UnitInterface
return Hal\MutaTesting\Test\UnitInterface

run() public method

Run tests
public run ( string $path = null, array $options = [], string $logFile = null, string $prependFile = null, callable $callback = null ) : string
$path string
$options array
$logFile string
$prependFile string
$callback callable
return string $output

runMutation() public method

Runs a mutation
public runMutation ( Hal\MutaTesting\Mutation\MutationInterface &$mutation, $options = [], $logFile = null, $prependFile = null ) : Hal\MutaTesting\Test\UnitInterface
$mutation Hal\MutaTesting\Mutation\MutationInterface
return Hal\MutaTesting\Test\UnitInterface

runTests() public method

Run specific tests
See also: Adapter::run()
public runTests ( Hal\MutaTesting\Test\UnitCollectionInterface $collection, array $options = [], string $logFile = null, string $prependFile = null )
$collection Hal\MutaTesting\Test\UnitCollectionInterface
$options array
$logFile string
$prependFile string