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')); }
public function testGetConnection() { $this->assertEquals(static::$mf->getConnection(), static::$userManager->getConnection()); }
/** * @return \Doctrine\DBAL\Connection */ public function getConnection() { return $this->mf->getConnection(); }