Code Duplication    Length = 9-9 lines in 2 locations

tests/Doubler/Generator/ClassMirrorTest.php 2 locations

@@ 368-376 (lines=9) @@
365
    /**
366
     * @test
367
     */
368
    public function it_doesnt_fail_to_typehint_nonexistent_FQCN()
369
    {
370
        $mirror = new ClassMirror();
371
372
        $classNode = $mirror->reflect(new \ReflectionClass('Fixtures\Prophecy\OptionalDepsClass'), array());
373
        $method = $classNode->getMethod('iHaveAStrangeTypeHintedArg');
374
        $arguments = $method->getArguments();
375
        $this->assertEquals('I\Simply\Am\Nonexistent', $arguments[0]->getTypeHint());
376
    }
377
378
    /**
379
     * @test
@@ 381-389 (lines=9) @@
378
    /**
379
     * @test
380
     */
381
    public function it_doesnt_fail_to_typehint_nonexistent_RQCN()
382
    {
383
        $mirror = new ClassMirror();
384
385
        $classNode = $mirror->reflect(new \ReflectionClass('Fixtures\Prophecy\OptionalDepsClass'), array());
386
        $method = $classNode->getMethod('iHaveAnEvenStrangerTypeHintedArg');
387
        $arguments = $method->getArguments();
388
        $this->assertEquals('I\Simply\Am\Not', $arguments[0]->getTypeHint());
389
    }
390
391
    /**
392
     * @test