Code Duplication    Length = 3-3 lines in 2 locations

tests/TestCase/Model/Table/IncidentsTableTest.php 2 locations

@@ 369-371 (lines=3) @@
366
        $bugReport = json_decode($bugReport, true);
367
368
        // Forcefully inflate the report by inflating $bugReport['errors']
369
        for ($i = 0; $i < 2000; $i++) {
370
            $bugReport['errors'] = array_push($bugReport['errors'], $bugReport['errors'][0]);
371
        }
372
        $result = $this->Incidents->createIncidentFromBugReport($bugReport);
373
374
        $this->assertEquals(true, in_array(false, $result));
@@ 382-384 (lines=3) @@
379
        $bugReport = json_decode($bugReport, true);
380
381
        // Forcefully inflate the report by inflating $bugReport['errors']
382
        for ($i = 0; $i < 1500; $i++) {
383
            $bugReport['exception']['stack'] .= array_push($bugReport['exception']['stack'][0]);
384
        }
385
        $result = $this->Incidents->createIncidentFromBugReport($bugReport);
386
387
        $this->assertEquals(true, in_array(false, $result));