Code Duplication    Length = 9-13 lines in 2 locations

tests/unit/DataObjectAnnotatorTest.php 2 locations

@@ 190-198 (lines=9) @@
187
    /**
188
     * Test that multiple annotation runs won't generate ducplicate docblocks
189
     */
190
    public function testNothingHasChangedAfterSecondAnnotation()
191
    {
192
        $classInfo = new AnnotateClassInfo(Team::class);
193
        $filePath = $classInfo->getClassFilePath();
194
        $original = file_get_contents($filePath);
195
        $firstRun = $this->annotator->getGeneratedFileContent($original, Team::class);
196
        $secondRun = $this->annotator->getGeneratedFileContent($firstRun, Team::class);
197
        $this->assertEquals($firstRun, $secondRun);
198
    }
199
200
    /**
201
     * Test that root (non-namespaced) classes get annotated
@@ 237-249 (lines=13) @@
234
    /**
235
     *
236
     */
237
    public function testTwoClassesInOneFile()
238
    {
239
        $classInfo = new AnnotateClassInfo(DoubleDataObjectInOneFile1::class);
240
        $filePath = $classInfo->getClassFilePath();
241
        $original = file_get_contents($filePath);
242
        $annotated = $this->annotator->getGeneratedFileContent($original, DoubleDataObjectInOneFile1::class);
243
244
        $this->assertContains('@property string $Title', $annotated);
245
246
        $annotated = $this->annotator->getGeneratedFileContent($annotated, DoubleDataObjectInOneFile2::class);
247
248
        $this->assertContains('@property string $Name', $annotated);
249
    }
250
251
    public function tearDown()
252
    {