PHP Class PHPSpec2\Console\Command\RunCommand

Inheritance: extends Symfony\Component\Console\Command\Command
Show file Open project: phpspec/phpspec2

Public Methods

Method Description
__construct ( EventDispatcher $dispatcher ) Initializes command.

Protected Methods

Method Description
configureAdditionalListeners ( $srcPath )
createArgumentsUnwrapper ( )
createFormatter ( $format, PHPSpec2\Formatter\Presenter\PresenterInterface $presenter, StatisticsCollector $collector )
createLocator ( )
createMatchersCollection ( PHPSpec2\Formatter\Presenter\PresenterInterface $presenter, ArgumentsUnwrapper $unwrapper )
createMocker ( )
createPresenter ( )
createRunner ( MatchersCollection $matchers, PHPSpec2\Mocker\MockerInterface $mocker, ArgumentsUnwrapper $unwrapper )
createStatisticsCollector ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )

Method Details

__construct() public method

Initializes command.
public __construct ( EventDispatcher $dispatcher )
$dispatcher Symfony\Component\EventDispatcher\EventDispatcher

configureAdditionalListeners() protected method

protected configureAdditionalListeners ( $srcPath )

createArgumentsUnwrapper() protected method

protected createArgumentsUnwrapper ( )

createFormatter() protected method

protected createFormatter ( $format, PHPSpec2\Formatter\Presenter\PresenterInterface $presenter, StatisticsCollector $collector )
$presenter PHPSpec2\Formatter\Presenter\PresenterInterface
$collector PHPSpec2\Listener\StatisticsCollector

createLocator() protected method

protected createLocator ( )

createMatchersCollection() protected method

protected createMatchersCollection ( PHPSpec2\Formatter\Presenter\PresenterInterface $presenter, ArgumentsUnwrapper $unwrapper )
$presenter PHPSpec2\Formatter\Presenter\PresenterInterface
$unwrapper PHPSpec2\Wrapper\ArgumentsUnwrapper

createMocker() protected method

protected createMocker ( )

createPresenter() protected method

protected createPresenter ( )

createRunner() protected method

protected createRunner ( MatchersCollection $matchers, PHPSpec2\Mocker\MockerInterface $mocker, ArgumentsUnwrapper $unwrapper )
$matchers PHPSpec2\Matcher\MatchersCollection
$mocker PHPSpec2\Mocker\MockerInterface
$unwrapper PHPSpec2\Wrapper\ArgumentsUnwrapper

createStatisticsCollector() protected method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface