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

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

Set up
public setUp ( )
    public function setUp()
    {
        $this->adapter = $this->getAdapter();
    }

Usage Example

Пример #1
0
 /**
  * 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();
 }
All Usage Examples Of ImboIntegrationTest\Database\DatabaseTests::setUp