function it_should_accept_a_visitor(VisitorInterface $visitor) { $visitor->visitCharacterClass($this)->shouldBeCalled(); $this->accept($visitor); }