/** * @covers sammaye\mongoyii\Model::getDbConnection */ public function testGetDbConnection() { $d = new Dummy(); $dbc = $d->getDbConnection(); $this->assertInstanceOf('sammaye\\mongoyii\\Client', $dbc); }
/** * @covers EMongoModel::getDbConnection */ public function testGetDbConnection() { $d = new Dummy(); $dbc = $d->getDbConnection(); $this->assertInstanceOf('EMongoClient', $dbc); }