private function doOneTimeSetup() { self::$testTablesPrefix .= rand(0, 1000); // Setup container names array (list of container names used by // integration tests) self::$testTables = array(); for ($i = 0; $i < 10; $i++) { self::$testTables[$i] = self::$testTablesPrefix . ($i + 1); } self::$creatableTables = array(); for ($i = 0; $i < 10; $i++) { self::$creatableTables[$i] = self::$createableTablesPrefix . ($i + 1); } self::$testTable1 = self::$testTables[0]; self::$testTable2 = self::$testTables[1]; self::$testTable3 = self::$testTables[2]; self::$testTable4 = self::$testTables[3]; self::$testTable5 = self::$testTables[4]; self::$testTable6 = self::$testTables[5]; self::$testTable7 = self::$testTables[6]; self::$testTable8 = self::$testTables[7]; self::$createTable1 = self::$creatableTables[0]; self::$createTable2 = self::$creatableTables[1]; // Create all test containers and their content $this->deleteAllTables(self::$testTables); $this->deleteAllTables(self::$creatableTables); $this->createTables(self::$testTablesPrefix, self::$testTables); }
public static function setUpBeforeClass() { parent::setUpBeforeClass(); self::$testTablesPrefix .= rand(0, 1000); // Setup container names array (list of container names used by // integration tests) self::$testTables = array(); for ($i = 0; $i < 10; $i++) { self::$testTables[$i] = self::$testTablesPrefix . ($i + 1); } self::$creatableTables = array(); for ($i = 0; $i < 10; $i++) { self::$creatableTables[$i] = self::$createableTablesPrefix . ($i + 1); } self::$TEST_TABLE_1 = self::$testTables[0]; self::$TEST_TABLE_2 = self::$testTables[1]; self::$TEST_TABLE_3 = self::$testTables[2]; self::$TEST_TABLE_4 = self::$testTables[3]; self::$TEST_TABLE_5 = self::$testTables[4]; self::$TEST_TABLE_6 = self::$testTables[5]; self::$TEST_TABLE_7 = self::$testTables[6]; self::$TEST_TABLE_8 = self::$testTables[7]; self::$CREATABLE_TABLE_1 = self::$creatableTables[0]; self::$CREATABLE_TABLE_2 = self::$creatableTables[1]; // Create all test containers and their content self::deleteAllTables(self::$testTables); self::deleteAllTables(self::$creatableTables); self::createTables(self::$testTablesPrefix, self::$testTables); }