Example #1
0
 public function testGet()
 {
     $this->assertInstanceOf('\\Doctrine\\DBAL\\Connection', static::$mf->getConnection());
     $this->assertInstanceOf('Dongww\\Db\\Doctrine\\Dbal\\Core\\Structure', static::$mf->getStructure());
     $this->assertInstanceOf('Dongww\\Db\\Doctrine\\Dbal\\Medoo\\MedooAdapter', static::$mf->getMedoo());
     $this->assertInstanceOf('Dongww\\Db\\Doctrine\\Dbal\\Medoo\\Reader', static::$mf->getReader());
     $this->assertInstanceOf('Dongww\\Db\\Doctrine\\Dbal\\Manager\\Manager', static::$mf->getManager('user'));
 }
Example #2
0
 public function testGetConnection()
 {
     $this->assertEquals(static::$mf->getConnection(), static::$userManager->getConnection());
 }
Example #3
0
 /**
  * @return \Doctrine\DBAL\Connection
  */
 public function getConnection()
 {
     return $this->mf->getConnection();
 }