| @@ 421-430 (lines=10) @@ | ||
| 418 | } |
|
| 419 | ||
| 420 | /** @test */ |
|
| 421 | public function passwordWithoutLetterOk() |
|
| 422 | {
|
|
| 423 | $string = '0123'; |
|
| 424 | ||
| 425 | $password = new Password(); |
|
| 426 | ||
| 427 | $password->addCriteria(new Dictionaries\Letter(), new Occurrences\None()); |
|
| 428 | ||
| 429 | $this->assertEquals($password->score($string), 100); |
|
| 430 | } |
|
| 431 | ||
| 432 | /** @test */ |
|
| 433 | public function passwordWithoutLetterFail() |
|
| @@ 433-442 (lines=10) @@ | ||
| 430 | } |
|
| 431 | ||
| 432 | /** @test */ |
|
| 433 | public function passwordWithoutLetterFail() |
|
| 434 | {
|
|
| 435 | $string = '0123a'; |
|
| 436 | ||
| 437 | $password = new Password(); |
|
| 438 | ||
| 439 | $password->addCriteria(new Dictionaries\Letter(), new Occurrences\None()); |
|
| 440 | ||
| 441 | $this->assertEquals($password->score($string), 0); |
|
| 442 | } |
|
| 443 | } |
|
| 444 | ||