Get the database this connection is connection to
public getDatabase ( ) : string | ||
return | string |
/** * @depends testParseConnectionString */ public function testGetDatabase() { $connection = new Shanty_Mongo_Connection('mongodb://127.0.0.1:27017/shanty-mongo'); $this->assertEquals('shanty-mongo', $connection->getDatabase()); }