示例#1
0
 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);
 }
示例#2
0
 function it_should_accept_a_visitor(NodeInterface $expression, VisitorInterface $visitor)
 {
     $expression->accept($visitor)->shouldBeCalled();
     $visitor->visitAndPredicate($this)->shouldBeCalled();
     $this->accept($visitor);
 }
示例#3
0
 function it_should_accept_a_visitor(NodeInterface $expression, VisitorInterface $visitor)
 {
     $expression->accept($visitor)->shouldBeCalled();
     $visitor->visitMatchedString($this)->shouldBeCalled();
     $this->accept($visitor);
 }