Code Duplication    Length = 9-9 lines in 3 locations

eZ/Publish/API/Repository/Tests/SearchServiceLocationTest.php 1 location

@@ 1080-1088 (lines=9) @@
1077
            }
1078
        }
1079
1080
        foreach ($result->searchHits as $hit) {
1081
            $property = new \ReflectionProperty(get_class($hit), 'index');
1082
            $property->setAccessible(true);
1083
            $property->setValue($hit, null);
1084
1085
            $property = new \ReflectionProperty(get_class($hit), 'matchedTranslation');
1086
            $property->setAccessible(true);
1087
            $property->setValue($hit, null);
1088
        }
1089
1090
        $this->assertEquals(
1091
            $fixture,

eZ/Publish/API/Repository/Tests/SearchServiceTest.php 2 locations

@@ 4251-4259 (lines=9) @@
4248
            }
4249
        }
4250
4251
        foreach ($result->searchHits as $hit) {
4252
            $property = new \ReflectionProperty(get_class($hit), 'index');
4253
            $property->setAccessible(true);
4254
            $property->setValue($hit, null);
4255
4256
            $property = new \ReflectionProperty(get_class($hit), 'matchedTranslation');
4257
            $property->setAccessible(true);
4258
            $property->setValue($hit, null);
4259
        }
4260
4261
        foreach ($fixture->searchHits as $hit) {
4262
            $property = new \ReflectionProperty(get_class($hit), 'index');
@@ 4261-4269 (lines=9) @@
4258
            $property->setValue($hit, null);
4259
        }
4260
4261
        foreach ($fixture->searchHits as $hit) {
4262
            $property = new \ReflectionProperty(get_class($hit), 'index');
4263
            $property->setAccessible(true);
4264
            $property->setValue($hit, null);
4265
4266
            $property = new \ReflectionProperty(get_class($hit), 'matchedTranslation');
4267
            $property->setAccessible(true);
4268
            $property->setValue($hit, null);
4269
        }
4270
4271
        $this->assertEquals(
4272
            $fixture,