- // Creates a random filename and updates the source database.
- $random = new Random();
- $temp_directory = file_directory_temp();
- file_prepare_directory($temp_directory, FILE_CREATE_DIRECTORY);
- static::$tempFilename = $test->getDatabasePrefix() . $random->name() . '.jpg';
- $file_path = $temp_directory . '/' . static::$tempFilename;
- file_put_contents($file_path, '');
-