Code Duplication    Length = 14-14 lines in 2 locations

tests/Test.php 2 locations

@@ 81-94 (lines=14) @@
78
    }    
79
80
    /** @test */
81
    public function strictOccurences()
82
    {
83
        $dictionary = ['a', 'b', 'c', 'd'];
84
85
        $strict = new Occurences\Strict(5);
86
        $result = $strict->parse($dictionary);
87
88
        $this->assertTrue(is_array($result));
89
        $this->assertEquals(5, count($result));
90
        $this->assertContains($result[0], $dictionary);
91
        $this->assertContains($result[1], $dictionary);
92
        $this->assertContains($result[2], $dictionary);
93
        $this->assertContains($result[3], $dictionary);
94
    }
95
96
    /** @test */
97
    public function betweenOccurences()
@@ 97-110 (lines=14) @@
94
    }
95
96
    /** @test */
97
    public function betweenOccurences()
98
    {
99
        $dictionary = ['a', 'b', 'c', 'd'];
100
101
        $strict = new Occurences\Between(3, 5);
102
        $result = $strict->parse($dictionary);
103
104
        $this->assertTrue(is_array($result));
105
        $this->assertTrue(count($result) >= 3);
106
        $this->assertTrue(count($result) <= 5);
107
        $this->assertContains($result[0], $dictionary);
108
        $this->assertContains($result[1], $dictionary);
109
        $this->assertContains($result[2], $dictionary);
110
    }
111
}
112