Code Duplication    Length = 12-12 lines in 2 locations

tests/Test.php 2 locations

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