Code Duplication    Length = 12-12 lines in 2 locations

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

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