Code Duplication    Length = 3-3 lines in 2 locations

tests/KochTest/Pagination/Adapter/NativeArrayTest.php 1 location

@@ 19-21 (lines=3) @@
16
    protected function setUp()
17
    {
18
        $this->array = [];
19
        for ($i = 0; $i < 10; ++$i) {
20
            $this->array[] = rand(1, 999);
21
        }
22
23
        $this->object = new NativeArray($this->array);
24
    }

tests/KochTest/Pagination/PaginationTest.php 1 location

@@ 235-237 (lines=3) @@
232
    {
233
        // dataset
234
        $this->array = [];
235
        for ($i = 0; $i < 10; ++$i) {
236
            $this->array[] = rand(1, 999);
237
        }
238
239
        // dataset adapter
240
        $adapter = new \Koch\Pagination\Adapter\NativeArray($this->array);