Code Duplication    Length = 11-11 lines in 4 locations

tests/Test.php 4 locations

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