setUp() 공개 메소드

Set up
public setUp ( )
예제 #1
0
파일: MongoTest.php 프로젝트: imbo/imbo
 /**
  * Make sure we have the mongo extension available and drop the test database just in case
  */
 public function setUp()
 {
     if (!class_exists('MongoDB\\Client')) {
         $this->markTestSkipped('pecl/mongodb >= 1.1.3 is required to run this test');
     }
     $client = new MongoClient();
     $client->dropDatabase($this->databaseName);
     parent::setUp();
 }
예제 #2
0
파일: MongoDBTest.php 프로젝트: imbo/imbo
 /**
  * Make sure we have the mongo extension available and drop the test database just in case
  */
 public function setUp()
 {
     if (!class_exists('MongoClient')) {
         $this->markTestSkipped('pecl/mongo >= 1.3.0 is required to run this test');
     }
     $client = new MongoClient();
     $client->selectDB($this->databaseName)->drop();
     parent::setUp();
 }