PHP Class spec\GrumPHP\Parser\Php\Configurator\TraverserConfiguratorSpec

Inheritance: extends PhpSpec\ObjectBehavior
Show file Open project: phpro/grumphp

Public Methods

Method Description
it_does_not_load_unused_visitors ( Symfony\Component\DependencyInjection\ContainerInterface $container, ParserContext $context, PhpParser\NodeTraverserInterface $traverser, PhpParser\NodeVisitor $visitor )
it_is_initializable ( )
it_loads_configured_visitors_from_task_configuration ( Symfony\Component\DependencyInjection\ContainerInterface $container, ParserContext $context, PhpParser\NodeTraverserInterface $traverser, PhpParser\NodeVisitor $visitor )
it_loads_standard_enabled_visitors ( Symfony\Component\DependencyInjection\ContainerInterface $container, ParserContext $context, PhpParser\NodeTraverserInterface $traverser, PhpParser\NodeVisitor $visitor )
it_should_append_the_context_to_a_context_aware_visitor ( Symfony\Component\DependencyInjection\ContainerInterface $container, ParserContext $context, PhpParser\NodeTraverserInterface $traverser, GrumPHP\Parser\Php\Visitor\ContextAwareVisitorInterface $visitor )
it_should_pass_visitor_configuration_to_a_configuration_aware_visitor ( Symfony\Component\DependencyInjection\ContainerInterface $container, ParserContext $context, PhpParser\NodeTraverserInterface $traverser, GrumPHP\Parser\Php\Visitor\ConfigurableVisitorInterface $visitor )
it_throws_an_exception_if_a_context_is_not_set ( PhpParser\NodeTraverserInterface $traverser )
it_throws_an_exception_if_no_visitors_are_configured ( ParserContext $context, PhpParser\NodeTraverserInterface $traverser )
it_throws_an_exception_if_the_configured_visitor_could_not_be_found ( ParserContext $context, PhpParser\NodeTraverserInterface $traverser )
let ( Symfony\Component\DependencyInjection\ContainerInterface $container )

Method Details

it_does_not_load_unused_visitors() public method

public it_does_not_load_unused_visitors ( Symfony\Component\DependencyInjection\ContainerInterface $container, ParserContext $context, PhpParser\NodeTraverserInterface $traverser, PhpParser\NodeVisitor $visitor )
$container Symfony\Component\DependencyInjection\ContainerInterface
$context GrumPHP\Parser\Php\Context\ParserContext
$traverser PhpParser\NodeTraverserInterface
$visitor PhpParser\NodeVisitor

it_is_initializable() public method

public it_is_initializable ( )

it_loads_configured_visitors_from_task_configuration() public method

public it_loads_configured_visitors_from_task_configuration ( Symfony\Component\DependencyInjection\ContainerInterface $container, ParserContext $context, PhpParser\NodeTraverserInterface $traverser, PhpParser\NodeVisitor $visitor )
$container Symfony\Component\DependencyInjection\ContainerInterface
$context GrumPHP\Parser\Php\Context\ParserContext
$traverser PhpParser\NodeTraverserInterface
$visitor PhpParser\NodeVisitor

it_loads_standard_enabled_visitors() public method

public it_loads_standard_enabled_visitors ( Symfony\Component\DependencyInjection\ContainerInterface $container, ParserContext $context, PhpParser\NodeTraverserInterface $traverser, PhpParser\NodeVisitor $visitor )
$container Symfony\Component\DependencyInjection\ContainerInterface
$context GrumPHP\Parser\Php\Context\ParserContext
$traverser PhpParser\NodeTraverserInterface
$visitor PhpParser\NodeVisitor

it_should_append_the_context_to_a_context_aware_visitor() public method

public it_should_append_the_context_to_a_context_aware_visitor ( Symfony\Component\DependencyInjection\ContainerInterface $container, ParserContext $context, PhpParser\NodeTraverserInterface $traverser, GrumPHP\Parser\Php\Visitor\ContextAwareVisitorInterface $visitor )
$container Symfony\Component\DependencyInjection\ContainerInterface
$context GrumPHP\Parser\Php\Context\ParserContext
$traverser PhpParser\NodeTraverserInterface
$visitor GrumPHP\Parser\Php\Visitor\ContextAwareVisitorInterface

it_should_pass_visitor_configuration_to_a_configuration_aware_visitor() public method

public it_should_pass_visitor_configuration_to_a_configuration_aware_visitor ( Symfony\Component\DependencyInjection\ContainerInterface $container, ParserContext $context, PhpParser\NodeTraverserInterface $traverser, GrumPHP\Parser\Php\Visitor\ConfigurableVisitorInterface $visitor )
$container Symfony\Component\DependencyInjection\ContainerInterface
$context GrumPHP\Parser\Php\Context\ParserContext
$traverser PhpParser\NodeTraverserInterface
$visitor GrumPHP\Parser\Php\Visitor\ConfigurableVisitorInterface

it_throws_an_exception_if_a_context_is_not_set() public method

public it_throws_an_exception_if_a_context_is_not_set ( PhpParser\NodeTraverserInterface $traverser )
$traverser PhpParser\NodeTraverserInterface

it_throws_an_exception_if_no_visitors_are_configured() public method

public it_throws_an_exception_if_no_visitors_are_configured ( ParserContext $context, PhpParser\NodeTraverserInterface $traverser )
$context GrumPHP\Parser\Php\Context\ParserContext
$traverser PhpParser\NodeTraverserInterface

it_throws_an_exception_if_the_configured_visitor_could_not_be_found() public method

public it_throws_an_exception_if_the_configured_visitor_could_not_be_found ( ParserContext $context, PhpParser\NodeTraverserInterface $traverser )
$context GrumPHP\Parser\Php\Context\ParserContext
$traverser PhpParser\NodeTraverserInterface

let() public method

public let ( Symfony\Component\DependencyInjection\ContainerInterface $container )
$container Symfony\Component\DependencyInjection\ContainerInterface