Code Duplication    Length = 14-14 lines in 2 locations

tests/IntegrationTest.php 2 locations

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