Esempio n. 1
0
 function testConnect()
 {
     ActiveMongo::connect(DB, "localhost");
     try {
         Dummy::drop();
     } catch (ActiveMongo_Exception $e) {
     }
     try {
         Model1::drop();
     } catch (ActiveMongo_Exception $e) {
     }
     try {
         Model2::drop();
     } catch (ActiveMongo_Exception $e) {
     }
     try {
         Model3::drop();
     } catch (ActiveMongo_Exception $e) {
     }
     $this->assertTrue(TRUE);
 }