Fix a lot of notices/warnings/deprecation notes in the test directory

This commit is contained in:
Philipp
2020-10-18 20:31:57 +02:00
parent efaec26b1d
commit d55ecb9288
77 changed files with 428 additions and 558 deletions

View File

@@ -19,6 +19,8 @@
*
* This is in the same namespace as Crypto for mocking 'rand' and 'random_init'
*/
/// @todo Use right namespace - needs alternative way of mocking random_int()
namespace Friendica\Util;
use phpseclib\Crypt\RSA;
@@ -120,7 +122,6 @@ function random_int($min, $max)
{
global $phpMock;
if (isset($phpMock['random_int'])) {
$result = call_user_func_array($phpMock['random_int'], func_get_args());
return $result;
return call_user_func_array($phpMock['random_int'], func_get_args());
}
}