/** * testAcceptInvokesVisitInterfaceOnGivenVisitor * * @return void * @group pdepend * @group pdepend::code * @group unittest */ public function testAcceptInvokesVisitInterfaceOnGivenVisitor() { $visitor = $this->getMock('PHP_Depend_VisitorI'); $visitor->expects($this->once())->method('visitInterface')->with(self::isInstanceOf(PHP_Depend_Code_Interface::CLAZZ)); $interface = new PHP_Depend_Code_Interface(__CLASS__); $interface->accept($visitor); }