mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-17 02:35:10 +00:00
Use assertArrayNotHasKey().
This commit is contained in:
parent
f2a08f7b6c
commit
d6c210984c
@ -36,8 +36,9 @@ class Unit_Crypt_RandomTest extends PhpseclibTestCase
|
|||||||
for ($i = 0; $i < 10000; ++$i) {
|
for ($i = 0; $i < 10000; ++$i) {
|
||||||
$rand = crypt_random_string(16);
|
$rand = crypt_random_string(16);
|
||||||
$this->assertSame(16, strlen($rand));
|
$this->assertSame(16, strlen($rand));
|
||||||
$this->assertFalse(
|
$this->assertArrayNotHasKey(
|
||||||
isset($values[$rand]),
|
$rand,
|
||||||
|
$values,
|
||||||
'Failed asserting that generated value does not exist in set.'
|
'Failed asserting that generated value does not exist in set.'
|
||||||
);
|
);
|
||||||
$values[$rand] = true;
|
$values[$rand] = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user