PHP Class Behat\Behat\Transformation\Transformer\RepositoryArgumentTransformer

Author: Konstantin Kudryashov ([email protected])
Inheritance: implements Behat\Behat\Transformation\Transformer\ArgumentTransformer, implements Behat\Behat\Transformation\RegexGenerator
显示文件 Open project: behat/behat

Public Methods

Method Description
__construct ( Behat\Behat\Transformation\TransformationRepository $repository, CallCenter $callCenter, Behat\Behat\Definition\Pattern\PatternTransformer $patternTransformer, Symfony\Component\Translation\TranslatorInterface $translator ) Initializes transformer.
generateRegex ( $suiteName, $pattern, $language )
supportsDefinitionAndArgument ( Behat\Behat\Definition\Call\DefinitionCall $definitionCall, $argumentIndex, $argumentValue )
transformArgument ( Behat\Behat\Definition\Call\DefinitionCall $definitionCall, $argumentIndex, $argumentValue )

Private Methods

Method Description
applyNormalTransformations ( array $transformations, Behat\Behat\Definition\Call\DefinitionCall $definitionCall, integer | string $index, mixed $value ) : mixed Apply normal (non-simple) argument transformations.
applySimpleTransformations ( array $transformations, Behat\Behat\Definition\Call\DefinitionCall $definitionCall, integer | string $index, mixed $value ) : mixed Apply simple argument transformations in priority order.
splitSimpleAndNormalTransformations ( array $transformations ) : array Splits transformations into simple and normal ones.
transform ( Behat\Behat\Definition\Call\DefinitionCall $definitionCall, Behat\Behat\Transformation\Transformation $transformation, integer | string $index, mixed $value ) : mixed Transforms argument value using registered transformers.

Method Details

__construct() public method

Initializes transformer.
public __construct ( Behat\Behat\Transformation\TransformationRepository $repository, CallCenter $callCenter, Behat\Behat\Definition\Pattern\PatternTransformer $patternTransformer, Symfony\Component\Translation\TranslatorInterface $translator )
$repository Behat\Behat\Transformation\TransformationRepository
$callCenter Behat\Testwork\Call\CallCenter
$patternTransformer Behat\Behat\Definition\Pattern\PatternTransformer
$translator Symfony\Component\Translation\TranslatorInterface

generateRegex() public method

public generateRegex ( $suiteName, $pattern, $language )

supportsDefinitionAndArgument() public method

public supportsDefinitionAndArgument ( Behat\Behat\Definition\Call\DefinitionCall $definitionCall, $argumentIndex, $argumentValue )
$definitionCall Behat\Behat\Definition\Call\DefinitionCall

transformArgument() public method

public transformArgument ( Behat\Behat\Definition\Call\DefinitionCall $definitionCall, $argumentIndex, $argumentValue )
$definitionCall Behat\Behat\Definition\Call\DefinitionCall