Code Duplication    Length = 11-11 lines in 4 locations

tests/IntegrationTest.php 4 locations

@@ 239-249 (lines=11) @@
236
    }
237
238
    /** @test */
239
    public function simpleStrictPerfectScore()
240
    {
241
        $string = '1a2b3c';
242
243
        $password = new Password();
244
245
        $password->addCriteria(new Dictionaries\Digit(), new Occurrences\Strict(3));
246
        $password->addCriteria(new Dictionaries\Letter(), new Occurrences\Strict(3));
247
248
        $this->assertEquals($password->score($string), 100);
249
    }
250
251
    /** @test */
252
    public function simpleBetweenPerfectScore()
@@ 252-262 (lines=11) @@
249
    }
250
251
    /** @test */
252
    public function simpleBetweenPerfectScore()
253
    {
254
        $string = '1a2b3c4';
255
256
        $password = new Password();
257
258
        $password->addCriteria(new Dictionaries\Digit(), new Occurrences\Between(3, 5));
259
        $password->addCriteria(new Dictionaries\Letter(), new Occurrences\Between(3, 5));
260
261
        $this->assertEquals($password->score($string), 100);
262
    }
263
264
    /** @test */
265
    public function simpleMixedPerfectScore()
@@ 265-275 (lines=11) @@
262
    }
263
264
    /** @test */
265
    public function simpleMixedPerfectScore()
266
    {
267
        $string = '1a2b3cde';
268
269
        $password = new Password();
270
271
        $password->addCriteria(new Dictionaries\Digit(), new Occurrences\Strict(3));
272
        $password->addCriteria(new Dictionaries\Letter(), new Occurrences\Between(3, 5));
273
274
        $this->assertEquals($password->score($string), 100);
275
    }
276
277
    /** @test */
278
    public function simpleMixedIncompleteScore()
@@ 278-288 (lines=11) @@
275
    }
276
277
    /** @test */
278
    public function simpleMixedIncompleteScore()
279
    {
280
        $string = '1a2bc';
281
282
        $password = new Password();
283
284
        $password->addCriteria(new Dictionaries\Digit(), new Occurrences\Strict(3));
285
        $password->addCriteria(new Dictionaries\Letter(), new Occurrences\Between(3, 5));
286
287
        $this->assertEquals($password->score($string), 50);
288
    }
289
290
    /** @test */
291
    public function complexStrictPerfectScore()