PHP Class PhpSpec\Console\Application

Inheritance: extends Symfony\Component\Console\Application
Show file Open project: phpspec/phpspec Class Usage Examples

Public Methods

Method Description
__construct ( string $version )
doRun ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer
getContainer ( ) : PhpSpec\ServiceContainer

Protected Methods

Method Description
getDefaultInputDefinition ( ) Fixes an issue with definitions of the no-interaction option not being completely shown in some cases
loadConfigurationFile ( Symfony\Component\Console\Input\InputInterface $input, IndexedServiceContainer $container )
parseConfigurationFile ( Symfony\Component\Console\Input\InputInterface $input ) : array

Private Methods

Method Description
addPathsToEachSuiteConfig ( string $configDir, array $config ) : array
ensureIsValidMatcherClass ( $class )
extractConfigFromFirstParsablePath ( array $paths ) : array
loadExtension ( PhpSpec\ServiceContainer $container, $extensionClass, $config )
parseConfigFromExistingPath ( string $path ) : array
registerCustomMatchers ( IndexedServiceContainer $container, array $matchersClassnames )

Method Details

__construct() public method

public __construct ( string $version )
$version string

doRun() public method

public doRun ( 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
return integer

getContainer() public method

public getContainer ( ) : PhpSpec\ServiceContainer
return PhpSpec\ServiceContainer

getDefaultInputDefinition() protected method

Fixes an issue with definitions of the no-interaction option not being completely shown in some cases

loadConfigurationFile() protected method

protected loadConfigurationFile ( Symfony\Component\Console\Input\InputInterface $input, IndexedServiceContainer $container )
$input Symfony\Component\Console\Input\InputInterface
$container PhpSpec\ServiceContainer\IndexedServiceContainer

parseConfigurationFile() protected method

protected parseConfigurationFile ( Symfony\Component\Console\Input\InputInterface $input ) : array
$input Symfony\Component\Console\Input\InputInterface
return array