Code Duplication    Length = 12-12 lines in 2 locations

eZ/Publish/Core/Persistence/Cache/Tests/AbstractInMemoryCacheHandlerTest.php 1 location

@@ 169-180 (lines=12) @@
166
            ->with(...$arguments)
167
            ->willReturn($data);
168
169
        foreach ($additionalCalls as $additionalCall) {
170
            $innerHandlerMock = $this->createMock($additionalCall[1]);
171
            $this->persistenceHandlerMock
172
                ->expects($this->once())
173
                ->method($additionalCall[0])
174
                ->willReturn($innerHandlerMock);
175
176
            $innerHandlerMock
177
                ->expects($this->once())
178
                ->method($additionalCall[2])
179
                ->willReturn($additionalCall[3]);
180
        }
181
182
        $this->cacheMock
183
            ->expects($this->once())

eZ/Publish/Core/Persistence/Cache/Tests/AbstractCacheHandlerTest.php 1 location

@@ 177-188 (lines=12) @@
174
            ->with(...$arguments)
175
            ->willReturn($data);
176
177
        foreach ($additionalCalls as $additionalCall) {
178
            $innerHandlerMock = $this->createMock($additionalCall[1]);
179
            $this->persistenceHandlerMock
180
                ->expects($this->once())
181
                ->method($additionalCall[0])
182
                ->willReturn($innerHandlerMock);
183
184
            $innerHandlerMock
185
                ->expects($this->once())
186
                ->method($additionalCall[2])
187
                ->willReturn($additionalCall[3]);
188
        }
189
190
        $this->cacheMock
191
            ->expects($this->once())