Ejemplo n.º 1
0
 public function testModule()
 {
     /** @var \MOC\V\Component\Documentation\Component\Bridge\Bridge $MockBridge */
     $MockBridge = $this->getMockBuilder('MOC\\V\\Component\\Documentation\\Component\\Bridge\\Bridge')->getMock();
     $Vendor = new Vendor(new $MockBridge());
     $Module = new Documentation($Vendor);
     $this->assertInstanceOf('MOC\\V\\Component\\Documentation\\Component\\IVendorInterface', $Module->getVendorInterface());
     $this->assertInstanceOf('MOC\\V\\Component\\Documentation\\Component\\IVendorInterface', $Module->setBridgeInterface($MockBridge));
     $this->assertInstanceOf('MOC\\V\\Component\\Documentation\\Component\\IBridgeInterface', $Module->getBridgeInterface());
 }