aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_upload.php
diff options
context:
space:
mode:
authorOliver Schramm <oliver.schramm97@gmail.com>2014-11-05 21:16:04 +0100
committerOliver Schramm <oliver.schramm97@gmail.com>2014-11-05 21:16:04 +0100
commit25a7c6e829bfa70997dd2bcca483cf40a475db54 (patch)
tree56985693a1c868979a07a2a35eefb296a2aaf476 /Diffstat (limited to 'phpBB/includes/functions_upload.php')
0 files changed, 0 insertions, 0 deletions
span>['rand_seed_last_update'] = time() + 600; } public function test_gen_rand_string() { for ($tests = 0; $tests <= self::TEST_COUNT; ++$tests) { for ($num_chars = self::MIN_STRING_LENGTH; $num_chars <= self::MAX_STRING_LENGTH; ++$num_chars) { $random_string = gen_rand_string($num_chars); $random_string_length = strlen($random_string); $this->assertTrue($random_string_length >= self::MIN_STRING_LENGTH); $this->assertTrue($random_string_length <= $num_chars); $this->assertRegExp('#^[A-Z0-9]+$#', $random_string); } } }