getDatabase() public method

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