Code Duplication    Length = 11-11 lines in 4 locations

tests/IntegrationTest.php 4 locations

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