Behat


Behat\Behat\Context\ContextDispatcher
Behat/Behat/Context/ContextDispatcher.php at line 18

Class ContextDispatcher

ContextDispatcher

public class ContextDispatcher

Context dispatcher.

Author:
Konstantin Kudryashov

Constructor Summary
void

__construct(array parameters)

Initialize dispatcher.

Method Summary
void

addClassGuesser(ClassGuesserInterface guesser)

Adds context class guesser to the dispatcher.

void

addInitializer(InitializerInterface initializer)

Adds context initializer to the dispatcher.

string

getContextClass()

Returns context classname.

array

getContextParameters()

Returns context parameters.

ContextInterface

createContext()

Creates new context instance.

Constructor Detail

Behat/Behat/Context/ContextDispatcher.php at line 29

__construct

public void __construct(array parameters)

Initialize dispatcher.

Parameters:
parameters - context parameters

Method Detail

Behat/Behat/Context/ContextDispatcher.php at line 39

addClassGuesser

public void addClassGuesser(ClassGuesserInterface guesser)

Adds context class guesser to the dispatcher.


Behat/Behat/Context/ContextDispatcher.php at line 49

addInitializer

public void addInitializer(InitializerInterface initializer)

Adds context initializer to the dispatcher.


Behat/Behat/Context/ContextDispatcher.php at line 59

getContextClass

public string getContextClass()

Returns context classname.


Behat/Behat/Context/ContextDispatcher.php at line 97

getContextParameters

public array getContextParameters()

Returns context parameters.


Behat/Behat/Context/ContextDispatcher.php at line 109

createContext

public ContextInterface createContext()

Creates new context instance.

Throws:
\RuntimeException

Behat