blob: c6d7a37e98227241289b3bd2ee4115ccf3571a88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<?php
declare(strict_types=1);
class passwordUtilTest extends PHPUnit\Framework\TestCase {
public function testCheck(): void {
$password = '1234567';
$ok = FreshRSS_password_Util::check($password);
self::assertTrue($ok);
}
public function testCheckReturnsFalseIfEmpty(): void {
$password = '';
$ok = FreshRSS_password_Util::check($password);
self::assertFalse($ok);
}
public function testCheckReturnsFalseIfLessThan7Characters(): void {
$password = '123456';
$ok = FreshRSS_password_Util::check($password);
self::assertFalse($ok);
}
}
|