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