Code Duplication    Length = 14-14 lines in 2 locations

tests/Test.php 2 locations

@@ 198-211 (lines=14) @@
195
    }    
196
197
    /** @test */
198
    public function strictOccurences()
199
    {
200
        $dictionary = ['a', 'b', 'c', 'd'];
201
202
        $strict = new Occurences\Strict(5);
203
        $result = $strict->parse($dictionary);
204
205
        $this->assertTrue(is_array($result));
206
        $this->assertEquals(5, count($result));
207
        $this->assertContains($result[0], $dictionary);
208
        $this->assertContains($result[1], $dictionary);
209
        $this->assertContains($result[2], $dictionary);
210
        $this->assertContains($result[3], $dictionary);
211
    }
212
213
    /** @test */
214
    public function betweenOccurences()
@@ 214-227 (lines=14) @@
211
    }
212
213
    /** @test */
214
    public function betweenOccurences()
215
    {
216
        $dictionary = ['a', 'b', 'c', 'd'];
217
218
        $strict = new Occurences\Between(3, 5);
219
        $result = $strict->parse($dictionary);
220
221
        $this->assertTrue(is_array($result));
222
        $this->assertTrue(count($result) >= 3);
223
        $this->assertTrue(count($result) <= 5);
224
        $this->assertContains($result[0], $dictionary);
225
        $this->assertContains($result[1], $dictionary);
226
        $this->assertContains($result[2], $dictionary);
227
    }
228
}
229