| @@ 400-409 (lines=10) @@ | ||
| 397 | } |
|
| 398 | ||
| 399 | /** @test */ |
|
| 400 | public function passwordWithoutLetterOk() |
|
| 401 | {
|
|
| 402 | $string = '0123'; |
|
| 403 | ||
| 404 | $password = new Password(); |
|
| 405 | ||
| 406 | $password->addCriteria(new Dictionaries\Letter(), new Occurrences\None()); |
|
| 407 | ||
| 408 | $this->assertEquals($password->score($string), 100); |
|
| 409 | } |
|
| 410 | ||
| 411 | /** @test */ |
|
| 412 | public function passwordWithoutLetterFail() |
|
| @@ 412-421 (lines=10) @@ | ||
| 409 | } |
|
| 410 | ||
| 411 | /** @test */ |
|
| 412 | public function passwordWithoutLetterFail() |
|
| 413 | {
|
|
| 414 | $string = '0123a'; |
|
| 415 | ||
| 416 | $password = new Password(); |
|
| 417 | ||
| 418 | $password->addCriteria(new Dictionaries\Letter(), new Occurrences\None()); |
|
| 419 | ||
| 420 | $this->assertEquals($password->score($string), 0); |
|
| 421 | } |
|
| 422 | } |
|
| 423 | ||