Code Duplication    Length = 9-9 lines in 2 locations

tests/Doctrine/Tests/ORM/Tools/EntityGeneratorTest.php 2 locations

@@ 1301-1309 (lines=9) @@
1298
     * @param string $type
1299
     * @param \ReflectionProperty $property
1300
     */
1301
    private function assertPhpDocVarType($type, \ReflectionProperty $property)
1302
    {
1303
        $docComment = $property->getDocComment();
1304
        $regex      = '/@var\s+([\S]+)$/m';
1305
1306
        self::assertRegExp($regex, $docComment);
1307
        self::assertEquals(1, preg_match($regex, $docComment, $matches));
1308
        self::assertEquals($type, $matches[1]);
1309
    }
1310
1311
    /**
1312
     * @param string $type
@@ 1315-1323 (lines=9) @@
1312
     * @param string $type
1313
     * @param \ReflectionMethod $method
1314
     */
1315
    private function assertPhpDocReturnType($type, \ReflectionMethod $method)
1316
    {
1317
        $docComment = $method->getDocComment();
1318
        $regex      = '/@return\s+([\S]+)(\s+.*)$/m';
1319
1320
        self::assertRegExp($regex, $docComment);
1321
        self::assertEquals(1, preg_match($regex, $docComment, $matches));
1322
        self::assertEquals($type, $matches[1]);
1323
    }
1324
1325
    /**
1326
     * @param string $type