PHP 클래스 Peridot\Console\Command

상속: extends Symfony\Component\Console\Command\Command, use trait Peridot\Core\HasEventEmitterTrait
파일 보기 프로젝트 열기: peridot-php/peridot 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$configuration Peridot\Configuration
$factory Peridot\Reporter\ReporterFactory
$loader Peridot\Runner\SuiteLoaderInterface
$runner Peridot\Runner\RunnerInterface

공개 메소드들

메소드 설명
__construct ( Peridot\Runner\RunnerInterface $runner, Configuration $configuration, Peridot\Reporter\ReporterFactory $factory, Evenement\EventEmitterInterface $eventEmitter )
getLoader ( ) : Peridot\Runner\SuiteLoaderInterface Fetch the loader used by the Peridot command. Defaults to a glob based loader
getRunner ( ) : Peridot\Runner\RunnerInterface Return the runner used by the Peridot command. Defaults to an instance of Peridot\Runner\Runner.
getSynopsis ( $short = false ) : string
setLoader ( Peridot\Runner\SuiteLoaderInterface $loader ) Set the loader used by the Peridot command
setRunner ( Peridot\Runner\RunnerInterface $runner ) Set the suite runner used by the Peridot command.

보호된 메소드들

메소드 설명
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer Load and run Suites and Tests
getResult ( ) : integer Return the result as an integer.
listReporters ( Symfony\Component\Console\Output\OutputInterface $output ) Output available reporters

메소드 상세

__construct() 공개 메소드

public __construct ( Peridot\Runner\RunnerInterface $runner, Configuration $configuration, Peridot\Reporter\ReporterFactory $factory, Evenement\EventEmitterInterface $eventEmitter )
$runner Peridot\Runner\RunnerInterface
$configuration Peridot\Configuration
$factory Peridot\Reporter\ReporterFactory
$eventEmitter Evenement\EventEmitterInterface

execute() 보호된 메소드

Load and run Suites and Tests
protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
리턴 integer

getLoader() 공개 메소드

Fetch the loader used by the Peridot command. Defaults to a glob based loader
public getLoader ( ) : Peridot\Runner\SuiteLoaderInterface
리턴 Peridot\Runner\SuiteLoaderInterface

getResult() 보호된 메소드

Return the result as an integer.
protected getResult ( ) : integer
리턴 integer

getRunner() 공개 메소드

Return the runner used by the Peridot command. Defaults to an instance of Peridot\Runner\Runner.
public getRunner ( ) : Peridot\Runner\RunnerInterface
리턴 Peridot\Runner\RunnerInterface

getSynopsis() 공개 메소드

public getSynopsis ( $short = false ) : string
리턴 string

listReporters() 보호된 메소드

Output available reporters
protected listReporters ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface

setLoader() 공개 메소드

Set the loader used by the Peridot command
public setLoader ( Peridot\Runner\SuiteLoaderInterface $loader )
$loader Peridot\Runner\SuiteLoaderInterface

setRunner() 공개 메소드

Set the suite runner used by the Peridot command.
public setRunner ( Peridot\Runner\RunnerInterface $runner )
$runner Peridot\Runner\RunnerInterface

프로퍼티 상세

$configuration 보호되어 있는 프로퍼티

protected Configuration,Peridot $configuration
리턴 Peridot\Configuration

$factory 보호되어 있는 프로퍼티

protected ReporterFactory,Peridot\Reporter $factory
리턴 Peridot\Reporter\ReporterFactory

$loader 보호되어 있는 프로퍼티

protected SuiteLoaderInterface,Peridot\Runner $loader
리턴 Peridot\Runner\SuiteLoaderInterface

$runner 보호되어 있는 프로퍼티

protected RunnerInterface,Peridot\Runner $runner
리턴 Peridot\Runner\RunnerInterface