Code Duplication    Length = 14-14 lines in 2 locations

tests/IntegrationTest.php 2 locations

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