/**
  * Tests the visitor accept method.
  *
  * @return void
  */
 public function testVisitorAccept()
 {
     $class = new ASTClass(__CLASS__);
     $visitor = new StubASTVisitor();
     $class->accept($visitor);
     $this->assertSame($class, $visitor->class);
 }