PHP Класс Mutagenesis\Console

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$_options array Options passed across the command line parsed by getopt()

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

Метод Описание
main ( array $options = null, RunnerAbstract $runner = null ) Sets up options, and initialises the Runner to perform mutation tests and echo out the results

Защищенные методы

Метод Описание
setAdapterConstraint ( RunnerAbstract $runner ) Set Adapter Constraint. For example, you can constrain PHPUnit by passing the Test Case/Suite Class and/or Name to execute. e.g. phpunit AllTests.php (constraint is "AllTests.php")
setAdapterName ( RunnerAbstract $runner ) Set an adapter name to use for the provided runner. If none is provided, the PHPUnit adapter name is set by default.
setAdapterOptions ( RunnerAbstract $runner ) Set options to be parsed and passed to the adapter instance used by the runner
setBaseDirectory ( RunnerAbstract $runner ) Set a base directory for the provided runner
setBootstrap ( RunnerAbstract $runner ) Set the path to a bootstrap file used when testing. This allows for registering autoloaders and such, for example TestHelper.php or Bootstrap.php are common for PHPUnit.
setDetailCaptures ( RunnerAbstract $runner ) Set timeout in seconds to apply to each test run. The default timeout is 120 seconds.
setSourceDirectory ( RunnerAbstract $runner ) Set a source directory for the provided runner
setTestDirectory ( RunnerAbstract $runner ) Set a tests directory for the provided runner
setTimeout ( RunnerAbstract $runner ) Set timeout in seconds to apply to each test run. The default timeout is 120 seconds.

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

main() публичный статический Метод

Sets up options, and initialises the Runner to perform mutation tests and echo out the results
public static main ( array $options = null, RunnerAbstract $runner = null )
$options array
$runner Mutagenesis\Runner\RunnerAbstract Optional custom runner

setAdapterConstraint() защищенный статический Метод

Set Adapter Constraint. For example, you can constrain PHPUnit by passing the Test Case/Suite Class and/or Name to execute. e.g. phpunit AllTests.php (constraint is "AllTests.php")
protected static setAdapterConstraint ( RunnerAbstract $runner )
$runner Mutagenesis\Runner\RunnerAbstract

setAdapterName() защищенный статический Метод

Set an adapter name to use for the provided runner. If none is provided, the PHPUnit adapter name is set by default.
protected static setAdapterName ( RunnerAbstract $runner )
$runner Mutagenesis\Runner\RunnerAbstract

setAdapterOptions() защищенный статический Метод

Set options to be parsed and passed to the adapter instance used by the runner
protected static setAdapterOptions ( RunnerAbstract $runner )
$runner Mutagenesis\Runner\RunnerAbstract

setBaseDirectory() защищенный статический Метод

Set a base directory for the provided runner
protected static setBaseDirectory ( RunnerAbstract $runner )
$runner Mutagenesis\Runner\RunnerAbstract

setBootstrap() защищенный статический Метод

Set the path to a bootstrap file used when testing. This allows for registering autoloaders and such, for example TestHelper.php or Bootstrap.php are common for PHPUnit.
protected static setBootstrap ( RunnerAbstract $runner )
$runner Mutagenesis\Runner\RunnerAbstract

setDetailCaptures() защищенный статический Метод

Set timeout in seconds to apply to each test run. The default timeout is 120 seconds.
protected static setDetailCaptures ( RunnerAbstract $runner )
$runner Mutagenesis\Runner\RunnerAbstract

setSourceDirectory() защищенный статический Метод

Set a source directory for the provided runner
protected static setSourceDirectory ( RunnerAbstract $runner )
$runner Mutagenesis\Runner\RunnerAbstract

setTestDirectory() защищенный статический Метод

Set a tests directory for the provided runner
protected static setTestDirectory ( RunnerAbstract $runner )
$runner Mutagenesis\Runner\RunnerAbstract

setTimeout() защищенный статический Метод

Set timeout in seconds to apply to each test run. The default timeout is 120 seconds.
protected static setTimeout ( RunnerAbstract $runner )
$runner Mutagenesis\Runner\RunnerAbstract

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

$_options защищенное статическое свойство

Options passed across the command line parsed by getopt()
protected static array $_options
Результат array