Code Duplication    Length = 17-17 lines in 2 locations

tests/Doctrine/Tests/ORM/Functional/ExtraLazyCollectionTest.php 2 locations

@@ 1219-1235 (lines=17) @@
1216
    /**
1217
     * @return int[] ordered tuple: user id and tweet id
1218
     */
1219
    private function loadTweetFixture()
1220
    {
1221
        $user  = new User();
1222
        $tweet = new Tweet();
1223
1224
        $user->name     = 'ocramius';
1225
        $tweet->content = 'The cat is on the table';
1226
1227
        $user->addTweet($tweet);
1228
1229
        $this->_em->persist($user);
1230
        $this->_em->persist($tweet);
1231
        $this->_em->flush();
1232
        $this->_em->clear();
1233
1234
        return [$user->id, $tweet->id];
1235
    }
1236
1237
    /**
1238
     * @return int[] ordered tuple: user id and user list id
@@ 1240-1256 (lines=17) @@
1237
    /**
1238
     * @return int[] ordered tuple: user id and user list id
1239
     */
1240
    private function loadUserListFixture()
1241
    {
1242
        $user     = new User();
1243
        $userList = new UserList();
1244
1245
        $user->name     = 'ocramius';
1246
        $userList->listName = 'PHP Developers to follow closely';
1247
1248
        $user->addUserList($userList);
1249
1250
        $this->_em->persist($user);
1251
        $this->_em->persist($userList);
1252
        $this->_em->flush();
1253
        $this->_em->clear();
1254
1255
        return [$user->id, $userList->id];
1256
    }
1257
}
1258