Code Duplication    Length = 12-14 lines in 2 locations

tests/unit/Services/ArgumentCompilerTest.php 2 locations

@@ 218-231 (lines=14) @@
215
    /**
216
     * @test
217
     */
218
    public function shouldGetAdditionalDataKey()
219
    {
220
        /** @var Request $request */
221
        $request = $this->createMock(Request::class);
222
223
        /** @var array $actualResult */
224
        $actualResult = $this->argumentCompiler->buildArguments([
225
            'foo' => '%keyFoo',
226
        ], $request, [
227
            'keyFoo' => 'bar'
228
        ]);
229
230
        $this->assertEquals(['foo' => 'bar'], $actualResult);
231
    }
232
233
    /**
234
     * @test
@@ 285-296 (lines=12) @@
282
    /**
283
     * @test
284
     */
285
    public function shouldResolveLiteralString()
286
    {
287
        /** @var Request $request */
288
        $request = $this->createMock(Request::class);
289
290
        /** @var array $actualResult */
291
        $actualResult = $this->argumentCompiler->buildArguments([
292
            'foo' => '\'bar\'',
293
        ], $request);
294
295
        $this->assertEquals(['foo' => 'bar'], $actualResult);
296
    }
297
298
    /**
299
     * @test