Code Duplication    Length = 16-16 lines in 2 locations

tests/Test.php 2 locations

@@ 54-69 (lines=16) @@
51
    }
52
53
    /** @test */
54
    public function accentedLetterOnly()
55
    {
56
        $pw = new Password();
57
58
        $accentedLetter = new Dictionaries\AccentedLetter();
59
60
        $pw->addCriteria($accentedLetter, new Occurrences\Strict(5));
61
62
        $str = $pw->generate();
63
64
        $this->assertNotEmpty($str);
65
66
        $this->assertEquals(5, mb_strlen($str));
67
68
        $this->assertRegExp('/[' . implode($accentedLetter->handle()) . ']{5}/', $str);
69
    }
70
71
    /** @test */
72
    public function accentedUppercaseLetterOnly()
@@ 72-87 (lines=16) @@
69
    }
70
71
    /** @test */
72
    public function accentedUppercaseLetterOnly()
73
    {
74
        $pw = new Password();
75
76
        $accentedUppercaseLetter = new Dictionaries\AccentedUppercaseLetter();
77
78
        $pw->addCriteria($accentedUppercaseLetter, new Occurrences\Strict(5));
79
80
        $str = $pw->generate();
81
82
        $this->assertNotEmpty($str);
83
84
        $this->assertEquals(5, mb_strlen($str));
85
86
        $this->assertRegExp('/[' . implode($accentedUppercaseLetter->handle()) . ']{5}/', $str);
87
    }
88
89
    /** @test */
90
    public function specialCharacterOnly()