Skip to content

Commit

Permalink
Fix(test): test if pwned is more than a known value instead of equal
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeuh authored Jul 5, 2024
1 parent 4eca7cf commit 6a7c739
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/units/PwnedPasswords.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ public function testHowManyPwned() : void
$i =0;

$pass = 'coucoucestnous';
$count = 6;
$count = 18;

$i++;
$this->assert(__METHOD__ . ' : test #' . $i)
->if($this->newTestedInstance())
->then
->integer($this->testedInstance->howManyPwned($pass))->isEqualTo($count)
->integer($this->testedInstance->howManyPwned($pass))->isGreaterThan($count)
;
}

Expand Down

0 comments on commit 6a7c739

Please sign in to comment.