Code Duplication    Length = 14-14 lines in 2 locations

tests/IntegrationTest.php 2 locations

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