PHP 클래스 Mutagenesis\Console

파일 보기 프로젝트 열기: padraic/mutagenesis 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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