Code Duplication    Length = 9-9 lines in 2 locations

tests/Doubler/Generator/ClassMirrorTest.php 2 locations

@@ 383-391 (lines=9) @@
380
    /**
381
     * @test
382
     */
383
    public function it_doesnt_fail_to_typehint_nonexistent_FQCN()
384
    {
385
        $mirror = new ClassMirror();
386
387
        $classNode = $mirror->reflect(new \ReflectionClass('Fixtures\Prophecy\OptionalDepsClass'), array());
388
        $method = $classNode->getMethod('iHaveAStrangeTypeHintedArg');
389
        $arguments = $method->getArguments();
390
        $this->assertEquals('I\Simply\Am\Nonexistent', $arguments[0]->getTypeHint());
391
    }
392
393
    /**
394
     * @test
@@ 396-404 (lines=9) @@
393
    /**
394
     * @test
395
     */
396
    public function it_doesnt_fail_to_typehint_nonexistent_RQCN()
397
    {
398
        $mirror = new ClassMirror();
399
400
        $classNode = $mirror->reflect(new \ReflectionClass('Fixtures\Prophecy\OptionalDepsClass'), array());
401
        $method = $classNode->getMethod('iHaveAnEvenStrangerTypeHintedArg');
402
        $arguments = $method->getArguments();
403
        $this->assertEquals('I\Simply\Am\Not', $arguments[0]->getTypeHint());
404
    }
405
406
    /**
407
     * @test