public static function tearDownAfterClass() { if (self::$isOneTimeSetup) { $inst = new IntegrationTestBase(); $inst->setUp(); $inst->deleteContainers(self::$_testContainers, self::$_testContainersPrefix); $inst->deleteContainers(self::$_creatableContainers, self::$_createableContainersPrefix); self::$isOneTimeSetup = false; } parent::tearDownAfterClass(); }
public static function setUpBeforeClass() { parent::setUpBeforeClass(); // Setup container names array (list of container names used by // integration tests) self::$_testContainers = array(); for ($i = 0; $i < 10; $i++) { self::$_testContainers[$i] = self::$_testContainersPrefix . ($i + 1); } self::$_creatableContainers = array(); for ($i = 0; $i < 10; $i++) { self::$_creatableContainers[$i] = self::$_createableContainersPrefix . ($i + 1); } self::$_creatable_container_1 = self::$_creatableContainers[0]; self::$_creatable_container_2 = self::$_creatableContainers[1]; self::$_creatable_container_3 = self::$_creatableContainers[2]; self::$_creatable_container_4 = self::$_creatableContainers[3]; self::$_test_container_for_blobs = self::$_testContainers[0]; self::$_test_container_for_blobs_2 = self::$_testContainers[1]; self::$_test_container_for_listing = self::$_testContainers[2]; // Create all test containers and their content $inst = new IntegrationTestBase(); $inst->createContainers(self::$_testContainers, self::$_testContainersPrefix); }