Code Duplication    Length = 12-12 lines in 2 locations

tests/IntegrationTest.php 2 locations

@@ 23-34 (lines=12) @@
20
    }
21
22
    /** @test */
23
    public function letterPasswordOnly()
24
    {
25
        $pw = new Password();
26
27
        $pw->addCriteria(new Dictionaries\Letter(), new Occurrences\Strict(10));
28
29
        $str = $pw->generate();
30
31
        $this->assertNotEmpty($str);
32
33
        $this->assertRegExp('/[a-z]/', $str);
34
    }
35
36
    /** @test */
37
    public function alphanumericPasswordOnly()
@@ 186-197 (lines=12) @@
183
184
185
    /** @test */
186
    public function digitPasswordOnly()
187
    {
188
        $pw = new Password();
189
190
        $pw->addCriteria(new Dictionaries\Digit(), new Occurrences\Strict(10));
191
192
        $str = $pw->generate();
193
194
        $this->assertNotEmpty($str);
195
196
        $this->assertRegExp('/\d{10}/', $str);
197
    }
198
199
    /** @test */
200
    public function strictOccurrences()