getBackupDate() public method

public getBackupDate ( integer $offsetDay ) : boolean | string
$offsetDay integer the count of days to subtract to the current time
return boolean | string current date
 /**
  * Setup the test environment.
  *
  * - Remove all previous lang files before each test
  * - Create 10 backup files, one per day
  */
 public function setUp()
 {
     parent::setUp();
     Config::set(Localization::PREFIX_LARAVEL_CONFIG . 'lang_folder_path', self::LANG_DIR_PATH);
     Config::set(Localization::PREFIX_LARAVEL_CONFIG . 'folders', self::MOCK_DIR_PATH_GLOBAL);
     \Potsky\LaravelLocalizationHelpers\Factory\Tools::unlinkGlobFiles(self::LANG_DIR_PATH . '/*/message*.php');
     $manager = new Localization(new MessageBag());
     for ($i = 0; $i < 10; $i++) {
         $time = $manager->getBackupDate($i);
         touch(self::LANG_DIR_PATH . '/en/message' . $time . '.php');
         touch(self::LANG_DIR_PATH . '/fr/message' . $time . '.php');
     }
 }