src/Behat/Behat/HelperContainer/Call/Filter/ServicesResolver.php
private function repackageTransformationCall(TransformationCall $call, array $newArguments)
    {
        $transformation = $call->getCallee();

        if (!$transformation instanceof Transformation) {
            throw new UnsupportedCallException(
                sprintf(
                    'Something is wrong in callee associated with `%s` call.',
                    get_class($call)
                ), $call
            );
        }

        return new TransformationCall(
            $call->getEnvironment(),
            $call->getDefinition(),
            $transformation,
            $newArguments
        );
    }
private function repackageTransformationCall(TransformationCall $call, array $newArguments)
    {
        $transformation = $call->getCallee();

        if (!$transformation instanceof Transformation) {
            throw new UnsupportedCallException(
                sprintf(
                    'Something is wrong in callee associated with `%s` call.',
                    get_class($call)
                ), $call
            );
        }

        return new TransformationCall(
            $call->getEnvironment(),
            $call->getDefinition(),
            $transformation,
            $newArguments
        );
    }
private function repackageTransformationCall ( TransformationCall $ call , array $ newArguments ) { $ transformation = $ call -> getCallee ( ) ; if ( ! $ transformation instanceof Transformation ) { throw new UnsupportedCallException ( sprintf ( 'Something is wrong in callee associated with `%s` call.' , get_class ( $ call ) ) , $ call ) ; } return new TransformationCall ( $ call -> getEnvironment ( ) , $ call -> getDefinition ( ) , $ transformation , $ newArguments ) ; }
Repackages transformation call with new arguments.

@param TransformationCall $call
@param array $newArguments

@return TransformationCall

@throws UnsupportedCallException
Repackages transformation call with new arguments .