PHP Класс Hal\MutaTesting\Runner\Adapter\BaseAdapter

Наследование: implements Hal\MutaTesting\Runner\Adapter\AdapterInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$binary
$options
$processManager
$testDirectory

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

Метод Описание
__construct ( $binary, $testDirectory, array $options = [], Hal\MutaTesting\Runner\Process\ProcessManagerInterface $processManager = null )
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
getLastCommand ( )
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 )
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, callable $callback = 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
setProcessManager ( Hal\MutaTesting\Runner\Process\ProcessManagerInterface $processManager )

Описание методов

__construct() публичный Метод

public __construct ( $binary, $testDirectory, array $options = [], Hal\MutaTesting\Runner\Process\ProcessManagerInterface $processManager = null )
$options array
$processManager Hal\MutaTesting\Runner\Process\ProcessManagerInterface

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

getLastCommand() публичный Метод

public getLastCommand ( )

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() публичный Метод

public parseTestedFiles ( Hal\MutaTesting\Test\UnitInterface &$unit )
$unit 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, callable $callback = null ) : Hal\MutaTesting\Test\UnitInterface
$mutation Hal\MutaTesting\Mutation\MutationInterface
$callback callable
Результат 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

setProcessManager() публичный Метод

public setProcessManager ( Hal\MutaTesting\Runner\Process\ProcessManagerInterface $processManager )
$processManager Hal\MutaTesting\Runner\Process\ProcessManagerInterface

Описание свойств

$binary защищенное свойство

protected $binary

$options защищенное свойство

protected $options

$processManager защищенное свойство

protected $processManager

$testDirectory защищенное свойство

protected $testDirectory