You are here

public static function i18nStringTestCase::stringCreateArray in Internationalization 7

Create a bunch of random strings to test the API

3 calls to i18nStringTestCase::stringCreateArray()
i18nStringTestCase::stringCreateAll in i18n_string/i18n_string.test
Create strings for all languages
i18nStringTestCase::testCaching in i18n_string/i18n_string.test
Test base i18n_string caching.
i18nStringTestCase::testStringsAPI in i18n_string/i18n_string.test
Test base i18n_string API

File

i18n_string/i18n_string.test, line 192
Test case for multilingual string

Class

i18nStringTestCase
Class for testing i18n_string and modules using these features

Code

public static function stringCreateArray($number = 10, $length = 100) {
  for ($i = 1; $i <= $number; $i++) {
    $strings[$i] = self::randomName($length);
  }
  return $strings;
}