PHP Интерфейс Hal\MutaTesting\Runner\Adapter\AdapterInterface

Показать файл Открыть проект

Открытые методы

Метод Описание
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