/**
  * This function converts an array of url extensions,
  * and formats them to be used in url-related regex.
  * @return string
  * @uses Helpers::arrayToString
  * @uses self::urlExtensions
  * @uses Helpers::replaceCharacters
  */
 public static function extensionsToString()
 {
     $extensions_string = Helpers::arrayToString(self::urlExtensions());
     return Helpers::replaceCharacters($extensions_string, ",", "|");
 }
 private function generateTestArrayToString(array $original_array, $exp_result, $delimiter = ",")
 {
     $result = Helpers::arrayToString($original_array);
     $this->assertEquals($exp_result, $result);
 }