Code Duplication    Length = 15-16 lines in 2 locations

tests/Doctrine/Tests/ORM/Functional/Ticket/DDC6499Test.php 2 locations

@@ 44-59 (lines=16) @@
41
        ]);
42
    }
43
44
    public function testIssue() : void
45
    {
46
        $b = new DDC6499B();
47
        $a = new DDC6499A();
48
49
        $this->_em->persist($a);
50
51
        $a->b = $b;
52
53
        $this->_em->persist($b);
54
55
        $this->_em->flush();
56
57
        self::assertInternalType('integer', $a->id);
58
        self::assertInternalType('integer', $b->id);
59
    }
60
61
    public function testIssueReversed() : void
62
    {
@@ 61-75 (lines=15) @@
58
        self::assertInternalType('integer', $b->id);
59
    }
60
61
    public function testIssueReversed() : void
62
    {
63
        $b = new DDC6499B();
64
        $a = new DDC6499A();
65
66
        $a->b = $b;
67
68
        $this->_em->persist($b);
69
        $this->_em->persist($a);
70
71
        $this->_em->flush();
72
73
        self::assertInternalType('integer', $a->id);
74
        self::assertInternalType('integer', $b->id);
75
    }
76
}
77
78
/** @Entity */