PHP 인터페이스 Hal\MutaTesting\Runner\Adapter\AdapterInterface

파일 보기 프로젝트 열기: halleck45/mutatesting

공개 메소드들

메소드 설명
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

메소드 상세

createFileSystemMock() 공개 메소드

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
리턴 string

getBinary() 공개 메소드

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

getOptions() 공개 메소드

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

getSuiteResult() 공개 메소드

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
리턴 Hal\MutaTesting\Test\UnitCollectionInterface

getTestDirectory() 공개 메소드

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

parseTestedFiles() 공개 메소드

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
리턴 Hal\MutaTesting\Test\UnitInterface

run() 공개 메소드

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
리턴 string $output

runMutation() 공개 메소드

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

runTests() 공개 메소드

Run specific tests
또한 보기: 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