/** * Create DB connection and setup channel */ static function setupBeforeClass() { parent::setupBeforeClass(); if (!self::$uuid) { self::$uuid = self::createChannel('Aggregation', 'power', 100); } }
/** * Create DB connection and setup channel */ static function setupBeforeClass() { parent::setupBeforeClass(); self::$testSize = round(self::TEST_DAYS * 24 * 3600 / self::TEST_SPACING); if (!self::$uuid) { self::$uuid = self::createChannel('Performance', 'power', 100); } }
/** * Create DB connection and setup channel */ static function setupBeforeClass() { parent::setupBeforeClass(); self::$base = self::$context . '/' . static::$uuid . '.json?'; if (!static::$uuid) { echo "Failure: need UUID before test.\nRun `phpunit Tests\\SetupPerformanceData` to generate."; die; } if (isset(self::$to)) { if (!is_numeric(self::$to)) { self::$to = strtotime(self::$to) * 1000; } } }