Code Duplication    Length = 14-14 lines in 2 locations

tests/Test.php 2 locations

@@ 63-76 (lines=14) @@
60
    }    
61
62
    /** @test */
63
    public function strictOccurences()
64
    {
65
        $dictionary = ['a', 'b', 'c', 'd'];
66
67
        $strict = new Occurences\Strict(5);
68
        $result = $strict->parse($dictionary);
69
70
        $this->assertTrue(is_array($result));
71
        $this->assertEquals(5, count($result));
72
        $this->assertContains($result[0], $dictionary);
73
        $this->assertContains($result[1], $dictionary);
74
        $this->assertContains($result[2], $dictionary);
75
        $this->assertContains($result[3], $dictionary);
76
    }
77
78
    /** @test */
79
    public function betweenOccurences()
@@ 79-92 (lines=14) @@
76
    }
77
78
    /** @test */
79
    public function betweenOccurences()
80
    {
81
        $dictionary = ['a', 'b', 'c', 'd'];
82
83
        $strict = new Occurences\Between(3, 5);
84
        $result = $strict->parse($dictionary);
85
86
        $this->assertTrue(is_array($result));
87
        $this->assertTrue(count($result) >= 3);
88
        $this->assertTrue(count($result) <= 5);
89
        $this->assertContains($result[0], $dictionary);
90
        $this->assertContains($result[1], $dictionary);
91
        $this->assertContains($result[2], $dictionary);
92
    }
93
}
94