Code Duplication    Length = 7-9 lines in 4 locations

bridge/doctrine-orm/tests/Functional/GeneralTest.php 2 locations

@@ 85-91 (lines=7) @@
82
        $this->assertInternalType('int', $article->integer);
83
    }
84
85
    public function testDate()
86
    {
87
        $article = new Article();
88
        $article->date = new \DateTime('2016-01-01 00:00:00');
89
        $article = $this->persistAndReloadArticle($article);
90
        $this->assertEquals(new \DateTime('2016-01-01 00:00:00'), $article->date);
91
    }
92
93
    public function testObject()
94
    {
@@ 139-145 (lines=7) @@
136
        $this->assertEquals(true, $article->boolean);
137
    }
138
139
    public function testDouble()
140
    {
141
        $article = new Article();
142
        $article->double = 12.5;
143
        $article = $this->persistAndReloadArticle($article);
144
        $this->assertEquals(12.5, $article->double);
145
    }
146
147
    private function persistAndReloadArticle(Article $article)
148
    {

bridge/doctrine-phpcr-odm/tests/Functional/GeneralTest.php 2 locations

@@ 129-137 (lines=9) @@
126
        $this->assertInternalType('int', $article->integer);
127
    }
128
129
    public function testDate()
130
    {
131
        $this->initGeneralArticle();
132
133
        $article = new Article();
134
        $article->date = new \DateTime('2016-01-01 00:00:00');
135
        $article = $this->persistAndReloadArticle($article);
136
        $this->assertEquals(new \DateTime('2016-01-01 00:00:00'), $article->date);
137
    }
138
139
    public function testBoolean()
140
    {
@@ 149-157 (lines=9) @@
146
        $this->assertEquals(true, $article->boolean);
147
    }
148
149
    public function testDouble()
150
    {
151
        $this->initGeneralArticle();
152
153
        $article = new Article();
154
        $article->double = 12.5;
155
        $article = $this->persistAndReloadArticle($article);
156
        $this->assertEquals(12.5, $article->double);
157
    }
158
159
160
    public function testObject()