|
@@ 360-371 (lines=12) @@
|
| 357 |
|
}
|
| 358 |
|
|
| 359 |
|
/** @test */
|
| 360 |
|
public function checkEfficientClassicParseLetter()
|
| 361 |
|
{
|
| 362 |
|
$string = 'ea';
|
| 363 |
|
|
| 364 |
|
$password = new Password();
|
| 365 |
|
|
| 366 |
|
$password->addCriteria(new Dictionaries\UppercaseLetter(), new Occurrences\Strict(2));
|
| 367 |
|
$password->addCriteria(new Dictionaries\AccentedLetter(), new Occurrences\Strict(3));
|
| 368 |
|
$password->addCriteria(new Dictionaries\AccentedUppercaseLetter(), new Occurrences\Strict(3));
|
| 369 |
|
|
| 370 |
|
$this->assertEquals($password->score($string), 0);
|
| 371 |
|
}
|
| 372 |
|
|
| 373 |
|
|
| 374 |
|
/** @test */
|
|
@@ 375-386 (lines=12) @@
|
| 372 |
|
|
| 373 |
|
|
| 374 |
|
/** @test */
|
| 375 |
|
public function checkEfficientUppercaseParseLetter()
|
| 376 |
|
{
|
| 377 |
|
$string = 'EA';
|
| 378 |
|
|
| 379 |
|
$password = new Password();
|
| 380 |
|
|
| 381 |
|
$password->addCriteria(new Dictionaries\Letter(), new Occurrences\Strict(2));
|
| 382 |
|
$password->addCriteria(new Dictionaries\AccentedLetter(), new Occurrences\Strict(3));
|
| 383 |
|
$password->addCriteria(new Dictionaries\AccentedUppercaseLetter(), new Occurrences\Strict(3));
|
| 384 |
|
|
| 385 |
|
$this->assertEquals($password->score($string), 0);
|
| 386 |
|
}
|
| 387 |
|
|
| 388 |
|
/** @test */
|
| 389 |
|
public function checkEfficientAccentedParseLetter()
|
|
@@ 389-400 (lines=12) @@
|
| 386 |
|
}
|
| 387 |
|
|
| 388 |
|
/** @test */
|
| 389 |
|
public function checkEfficientAccentedParseLetter()
|
| 390 |
|
{
|
| 391 |
|
$string = 'éèà';
|
| 392 |
|
|
| 393 |
|
$password = new Password();
|
| 394 |
|
|
| 395 |
|
$password->addCriteria(new Dictionaries\Letter(), new Occurrences\Strict(2));
|
| 396 |
|
$password->addCriteria(new Dictionaries\UppercaseLetter(), new Occurrences\Strict(2));
|
| 397 |
|
$password->addCriteria(new Dictionaries\AccentedUppercaseLetter(), new Occurrences\Strict(3));
|
| 398 |
|
|
| 399 |
|
$this->assertEquals($password->score($string), 0);
|
| 400 |
|
}
|
| 401 |
|
|
| 402 |
|
/** @test */
|
| 403 |
|
public function checkEfficientAccentedUppercaseParseLetter()
|
|
@@ 403-414 (lines=12) @@
|
| 400 |
|
}
|
| 401 |
|
|
| 402 |
|
/** @test */
|
| 403 |
|
public function checkEfficientAccentedUppercaseParseLetter()
|
| 404 |
|
{
|
| 405 |
|
$string = 'ÉÈÀ';
|
| 406 |
|
|
| 407 |
|
$password = new Password();
|
| 408 |
|
|
| 409 |
|
$password->addCriteria(new Dictionaries\Letter(), new Occurrences\Strict(2));
|
| 410 |
|
$password->addCriteria(new Dictionaries\UppercaseLetter(), new Occurrences\Strict(2));
|
| 411 |
|
$password->addCriteria(new Dictionaries\AccentedLetter(), new Occurrences\Strict(3));
|
| 412 |
|
|
| 413 |
|
$this->assertEquals($password->score($string), 0);
|
| 414 |
|
}
|
| 415 |
|
}
|
| 416 |
|
|