/** * @return Config * @throws \Exception */ public static function initUnitConfig() { $config = Config::instance(); $config->testRunId = md5((isset($_SERVER['LOGNAME']) ? $_SERVER['LOGNAME'] : uniqid(true)) . microtime(true)); $config->testImagePath = __DIR__ . '/../misc/image.png'; $config->testZippedImagesPath = __DIR__ . '/../misc/images.zip'; $config->testVideoPath = __DIR__ . '/../misc/video.mp4'; return $config; }
/** * @return Config */ public function getConfig() { return Config::instance(); }