/** * Cleanup aggregation */ static function tearDownAfterClass() { if (self::$conn && self::$uuid && Util\Configuration::read('aggregation')) { $agg = new Util\Aggregation(self::$conn); $agg->clear(self::$uuid); } parent::tearDownAfterClass(); }
/** * 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); } }
/** * Run before each test */ function setUp() { static::clearCache(); parent::setUp(); }