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