diff options
Diffstat (limited to 'tests/phpunit/includes')
-rw-r--r-- | tests/phpunit/includes/utils.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/phpunit/includes/utils.php b/tests/phpunit/includes/utils.php index 7c0d4e4b19..ead788f996 100644 --- a/tests/phpunit/includes/utils.php +++ b/tests/phpunit/includes/utils.php @@ -6,17 +6,17 @@ * Returns a string of the required length containing random characters. Note that * the maximum possible string length is 32. * - * @param int $len Optional. The required length. Default 32. + * @param int $length Optional. The required length. Default 32. * @return string The string. */ -function rand_str( $len = 32 ) { - return substr( md5( uniqid( rand() ) ), 0, $len ); +function rand_str( $length = 32 ) { + return substr( md5( uniqid( rand() ) ), 0, $length ); } /** * Returns a string of the required length containing random characters. * - * @param int $len The required length. + * @param int $length The required length. * @return string The string. */ function rand_long_str( $length ) { |