passwordUtilTest.php 528 B

123456789101112131415161718192021222324252627
  1. <?php
  2. class passwordUtilTest extends PHPUnit\Framework\TestCase {
  3. public function testCheck() {
  4. $password = '1234567';
  5. $ok = FreshRSS_password_Util::check($password);
  6. $this->assertTrue($ok);
  7. }
  8. public function testCheckReturnsFalseIfEmpty() {
  9. $password = '';
  10. $ok = FreshRSS_password_Util::check($password);
  11. $this->assertFalse($ok);
  12. }
  13. public function testCheckReturnsFalseIfLessThan7Characters() {
  14. $password = '123456';
  15. $ok = FreshRSS_password_Util::check($password);
  16. $this->assertFalse($ok);
  17. }
  18. }