class ModuleSuiteLocator implements Controller (View source)

Locates test suite configuration based on module name.

Replaces:

Traits

Properties

protected Container $container
protected SuiteRegistry $registry

Methods

protected
getModule(string $name, bool $error = true)

Find target module being tested

public
__construct(ContainerInterface $container, SuiteRegistry $registry)

Init suite locator

public
configure(Command $command)

Configures command to be able to process it later.

public
null
execute(InputInterface $input, OutputInterface $output)

Processes data from container and console input.

protected
string
findModuleConfig(Module $module)

Get behat.yml configured for this module

protected
array
loadSuiteConfiguration(string $suite, Module $module)

Load configuration dynamically from yml

Details

protected Module getModule(string $name, bool $error = true)

Find target module being tested

Parameters

string $name
bool $error

Throw error if not found

Return Value

Module

__construct(ContainerInterface $container, SuiteRegistry $registry)

Init suite locator

Parameters

ContainerInterface $container
SuiteRegistry $registry

configure(Command $command)

Configures command to be able to process it later.

Parameters

Command $command

null execute(InputInterface $input, OutputInterface $output)

Processes data from container and console input.

Parameters

InputInterface $input
OutputInterface $output

Return Value

null

Exceptions

RuntimeException

protected string findModuleConfig(Module $module)

Get behat.yml configured for this module

Parameters

Module $module

Return Value

string

Path to config

protected array loadSuiteConfiguration(string $suite, Module $module)

Load configuration dynamically from yml

Parameters

string $suite

Suite name

Module $module

Return Value

array

Exceptions

Exception