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