public static function setUpBeforeClass() { parent::setUpBeforeClass(); // Removes cached authentication data if any self::$objectStorage->reloadAuthenticationData(); // Grab a container to search $container = self::$objectStorage->with('/')->get(); $containerCount = count($container->containers); if ($containerCount > 0) { $containerToSearch = $container->containers[$containerCount - rand(0, $containerCount - 1)]; self::$containerToSearch = $containerToSearch->getPath(); } self::$newContainerName = 'phpUnit_' . substr(md5(time()), 0, 7) . time(); foreach (range(0, 5) as $idx) { self::$newObjectNames[] = self::$newContainerName . '/' . $idx . '.txt'; } self::$metaKey = 'search-test'; self::$newObjectMeta = 'doremipasolrasido'; self::$newObjectBody = 'SoftLayer technologies. Object Stroage test file.'; }