Code Duplication    Length = 9-13 lines in 2 locations

tests/unit/DataObjectAnnotatorTest.php 2 locations

@@ 126-134 (lines=9) @@
123
    /**
124
     * Test that multiple annotation runs won't generate ducplicate docblocks
125
     */
126
    public function testNothingHasChangedAfterSecondAnnotation()
127
    {
128
        $classInfo = new AnnotateClassInfo(Team::class);
129
        $filePath = $classInfo->getClassFilePath();
130
        $original = file_get_contents($filePath);
131
        $firstRun = $this->annotator->getGeneratedFileContent($original, Team::class);
132
        $secondRun = $this->annotator->getGeneratedFileContent($firstRun, Team::class);
133
        $this->assertEquals($firstRun, $secondRun);
134
    }
135
136
    /**
137
     * Test the generation of annotations for a DataExtension
@@ 162-174 (lines=13) @@
159
    /**
160
     *
161
     */
162
    public function testTwoClassesInOneFile()
163
    {
164
        $classInfo = new AnnotateClassInfo(DoubleDataObjectInOneFile1::class);
165
        $filePath = $classInfo->getClassFilePath();
166
        $original = file_get_contents($filePath);
167
        $annotated = $this->annotator->getGeneratedFileContent($original, DoubleDataObjectInOneFile1::class);
168
169
        $this->assertContains('@property string $Title', $annotated);
170
171
        $annotated = $this->annotator->getGeneratedFileContent($annotated, DoubleDataObjectInOneFile2::class);
172
173
        $this->assertContains('@property string $Name', $annotated);
174
    }
175
176
    public function tearDown()
177
    {