/**
* Create a test treebuilder with a variable node, and init the validation.
*/
protected function getTestBuilder(): ExprBuilder
{ $builder =
new TreeBuilder('test'
);
return $builder ->
getRootNode() ->
children() ->
variableNode('key'
) ->
validate() ;
} /**
* Close the validation process and finalize with the given config.
*
* @param array|null $config The config you want to use for the finalization, if nothing provided
* a simple ['key'=>'value'] will be used
*/
protected function finalizeTestBuilder(NodeDefinition
$nodeDefinition, array
$config = null
): array
{