Code Duplication    Length = 10-10 lines in 3 locations

eZ/Publish/Core/MVC/Symfony/SiteAccess/Tests/MatcherSerializationTest.php 3 locations

@@ 141-150 (lines=10) @@
138
        ];
139
    }
140
141
    private function getMapPortMatcherTestCase(): array
142
    {
143
        $matcherBeforeSerialization = new Matcher\Map\Port(['map' => ['key' => 'value']]);
144
        $matcherBeforeSerialization->setMapKey('map');
145
146
        $matcherAfterDeserialization = new Matcher\Map\Port([]);
147
        $matcherAfterDeserialization->setMapKey('map');
148
149
        return [$matcherBeforeSerialization, $matcherAfterDeserialization];
150
    }
151
152
    private function getMapHostMatcherTestCase(): array
153
    {
@@ 152-161 (lines=10) @@
149
        return [$matcherBeforeSerialization, $matcherAfterDeserialization];
150
    }
151
152
    private function getMapHostMatcherTestCase(): array
153
    {
154
        $matcherBeforeSerialization = new Matcher\Map\Host(['map' => ['key' => 'value']]);
155
        $matcherBeforeSerialization->setMapKey('map');
156
157
        $matcherAfterDeserialization = new Matcher\Map\Host([]);
158
        $matcherAfterDeserialization->setMapKey('map');
159
160
        return [$matcherBeforeSerialization, $matcherAfterDeserialization];
161
    }
162
163
    private function getMapURIMatcherTestCase(): array
164
    {
@@ 163-172 (lines=10) @@
160
        return [$matcherBeforeSerialization, $matcherAfterDeserialization];
161
    }
162
163
    private function getMapURIMatcherTestCase(): array
164
    {
165
        $matcherBeforeSerialization = new Matcher\Map\URI(['map' => ['key' => 'value']]);
166
        $matcherBeforeSerialization->setMapKey('map');
167
168
        $matcherAfterDeserialization = new Matcher\Map\URI([]);
169
        $matcherAfterDeserialization->setMapKey('map');
170
171
        return [$matcherBeforeSerialization, $matcherAfterDeserialization];
172
    }
173
}
174