ImboIntegrationTest\Database\MongoDBTest::setUp PHP Метод

setUp() публичный Метод

Make sure we have the mongo extension available and drop the test database just in case
public setUp ( )
    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();
    }