Code Duplication    Length = 11-11 lines in 2 locations

eZ/Publish/Core/REST/Common/Tests/Output/ValueObjectVisitorBaseTest.php 2 locations

@@ 185-195 (lines=11) @@
182
     * @param array $arguments
183
     * @param string $returnValue
184
     */
185
    protected function addRouteExpectation($routeName, $arguments, $returnValue)
186
    {
187
        $this->getRouterMock()
188
            ->expects($this->at($this->routerCallIndex++))
189
            ->method('generate')
190
            ->with(
191
                $this->equalTo($routeName),
192
                $this->equalTo($arguments)
193
            )
194
            ->will($this->returnValue($returnValue));
195
    }
196
197
    /**
198
     * Adds the expectated value object visit calls sequence.
@@ 236-246 (lines=11) @@
233
     * @param array $arguments
234
     * @param string $returnValue
235
     */
236
    protected function addTemplatedRouteExpectation($routeName, $arguments, $returnValue)
237
    {
238
        $this->getTemplatedRouterMock()
239
            ->expects($this->at($this->templatedRouterCallIndex++))
240
            ->method('generate')
241
            ->with(
242
                $this->equalTo($routeName),
243
                $this->equalTo($arguments)
244
            )
245
            ->will($this->returnValue($returnValue));
246
    }
247
248
    /**
249
     * Must return an instance of the tested visitor object.