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