示例#1
0
 /**
  * Set up the test
  */
 public function setUp()
 {
     parent::setUp();
     $connection = new Connection();
     $db = $connection->getDatabase();
     $db->drop();
 }
示例#2
0
文件: BaseModel.php 项目: dwsla/deal
 public function selectDatabase()
 {
     if (!$this->connection->isConnected()) {
         $this->connection->connect();
     }
     $this->database = $this->connection->getDatabase();
 }
示例#3
0
 public function testGetDsn()
 {
     $connection = new Connection([], false);
     $this->assertEquals('mongodb://localhost:27017', $connection->getDsn());
 }