Code Duplication    Length = 14-14 lines in 2 locations

tests/Test.php 2 locations

@@ 126-139 (lines=14) @@
123
    }
124
125
    /** @test */
126
    public function smallAlphanumericFormatOnly()
127
    {
128
        $pw = new Password();
129
130
        $pw->addFormat(new Formats\SmallAlphanumeric());
131
132
        $str = $pw->generate();
133
134
        $this->assertNotEmpty($str);
135
136
        $this->assertEquals(15, mb_strlen($str));
137
138
        $this->assertRegExp('/[a-zA-Z0-9]/', $str);
139
    }
140
141
    /** @test */
142
    public function strongAlphanumericFormatOnly()
@@ 142-155 (lines=14) @@
139
    }
140
141
    /** @test */
142
    public function strongAlphanumericFormatOnly()
143
    {
144
        $pw = new Password();
145
146
        $pw->addFormat(new Formats\StrongAlphanumeric());
147
148
        $str = $pw->generate();
149
150
        $this->assertNotEmpty($str);
151
152
        $this->assertEquals(30, mb_strlen($str));
153
154
        $this->assertRegExp('/[a-zA-Z0-9]/', $str);
155
    }
156
157
    /** @test */
158
    public function mixedStrongFormatOnly()