Code Duplication    Length = 12-12 lines in 2 locations

eZ/Publish/Core/Persistence/Cache/Tests/AbstractInMemoryCacheHandlerTest.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())

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

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