unlinkGlobFiles() публичный статический Метод

public static unlinkGlobFiles ( string $glob ) : array
$glob string a file glob
Результат array the list of deleted files
 /**
  * Setup the test environment.
  *
  * - Remove all previous lang files before each test
  * - Set custom configuration paths
  */
 public function setUp()
 {
     parent::setUp();
     Tools::unlinkGlobFiles(self::LANG_DIR_PATH . '/*/message*.php');
     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);
     /** @noinspection PhpVoidFunctionResultUsedInspection */
     Artisan::call('localization:missing', array('--no-interaction' => true, '--output-flat' => true, '--new-value' => '%LEMMA POTSKY'));
 }
 /**
  * Setup the test environment.
  *
  * - Remove all previous lang files before each test
  * - Set custom configuration paths
  */
 public function setUp()
 {
     parent::setUp();
     Tools::unlinkGlobFiles(self::LANG_DIR_PATH . '/*/message*.php');
     self::$langFile = self::LANG_DIR_PATH . '/en/message.php';
     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);
     Config::set(Localization::PREFIX_LARAVEL_CONFIG . 'code_style.fixers', array('align_double_arrow', 'short_array_syntax'));
     // Remove all saved access token for translation API
     $translator = new \MicrosoftTranslator\Client(array('api_client_id' => true, 'api_client_secret' => true));
     $translator->getAuth()->getGuard()->deleteAllAccessTokens();
 }
 /**
  * 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');
     }
 }
 /**
  * Setup the test environment.
  *
  * - Remove all previous lang files before each test
  * - Set custom configuration paths
  */
 public function setUp()
 {
     parent::setUp();
     Tools::unlinkGlobFiles(self::LANG_DIR_PATH . '/*/message*.php');
     self::$langFile = self::LANG_DIR_PATH . '/en/message.php';
 }