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