Code Duplication    Length = 13-13 lines in 2 locations

vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlockFactoryTest.php 2 locations

@@ 71-83 (lines=13) @@
68
     * @covers ::create
69
     * @uses   phpDocumentor\Reflection\DocBlock\Description
70
     */
71
    public function testCreateDocBlockFromStringWithDocComment()
72
    {
73
        $fixture = new DocBlockFactory(m::mock(DescriptionFactory::class), m::mock(TagFactory::class));
74
75
        $docblock = $fixture->create('/** This is a DocBlock */');
76
77
        $this->assertInstanceOf(DocBlock::class, $docblock);
78
        $this->assertSame('This is a DocBlock', $docblock->getSummary());
79
        $this->assertEquals(new Description(''), $docblock->getDescription());
80
        $this->assertSame([], $docblock->getTags());
81
        $this->assertEquals(new Context(''), $docblock->getContext());
82
        $this->assertNull($docblock->getLocation());
83
    }
84
85
    /**
86
     * @covers ::create
@@ 90-102 (lines=13) @@
87
     * @covers ::__construct
88
     * @uses   phpDocumentor\Reflection\DocBlock\Description
89
     */
90
    public function testCreateDocBlockFromStringWithoutDocComment()
91
    {
92
        $fixture = new DocBlockFactory(m::mock(DescriptionFactory::class), m::mock(TagFactory::class));
93
94
        $docblock = $fixture->create('This is a DocBlock');
95
96
        $this->assertInstanceOf(DocBlock::class, $docblock);
97
        $this->assertSame('This is a DocBlock', $docblock->getSummary());
98
        $this->assertEquals(new Description(''), $docblock->getDescription());
99
        $this->assertSame([], $docblock->getTags());
100
        $this->assertEquals(new Context(''), $docblock->getContext());
101
        $this->assertNull($docblock->getLocation());
102
    }
103
104
    /**
105
     * @covers ::__construct