function it_should_accept_a_visitor(NodeInterface $left, NodeInterface $right, VisitorInterface $visitor) { $left->accept($visitor)->shouldBeCalled(); $right->accept($visitor)->shouldBeCalled(); $visitor->visitSequence($this)->shouldBeCalled(); $this->accept($visitor); }
function it_should_accept_a_visitor(NodeInterface $expression, VisitorInterface $visitor) { $expression->accept($visitor)->shouldBeCalled(); $visitor->visitAndPredicate($this)->shouldBeCalled(); $this->accept($visitor); }
function it_should_accept_a_visitor(NodeInterface $expression, VisitorInterface $visitor) { $expression->accept($visitor)->shouldBeCalled(); $visitor->visitMatchedString($this)->shouldBeCalled(); $this->accept($visitor); }