PHP Class Behat\Behat\Context\Cli\InteractiveContextIdentifier

Author: Konstantin Kudryashov ([email protected])
Inheritance: implements Behat\Behat\Context\Snippet\Generator\TargetContextIdentifier
Datei anzeigen Open project: behat/behat

Public Methods

Method Description
__construct ( Symfony\Component\Translation\TranslatorInterface $translator, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Initialises identifier.
guessTargetContextClass ( Behat\Behat\Context\Environment\ContextEnvironment $environment )

Private Methods

Method Description
askQuestion ( string $message, string[] $choices, string $default ) : string Asks user question.
interactionIsNotSupported ( ) : boolean Checks if interactive mode is supported.

Method Details

__construct() public method

Initialises identifier.
public __construct ( Symfony\Component\Translation\TranslatorInterface $translator, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$translator Symfony\Component\Translation\TranslatorInterface
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

guessTargetContextClass() public method

public guessTargetContextClass ( Behat\Behat\Context\Environment\ContextEnvironment $environment )
$environment Behat\Behat\Context\Environment\ContextEnvironment