Code Duplication    Length = 9-9 lines in 3 locations

tests/ForumTest.php 3 locations

@@ 233-241 (lines=9) @@
230
        $this->assertEquals($stickies->Count(), '0');
231
    }
232
    
233
    public function testTopics()
234
    {
235
        $forumWithPosts = $this->objFromFixture("Forum", "general");
236
        
237
        $this->assertEquals($forumWithPosts->getTopics()->Count(), '4');
238
        
239
        $forumWithoutPosts = $this->objFromFixture("Forum", "forum1cat2");
240
        $result = $forumWithoutPosts->getTopics();
241
        $this->assertEquals(0, $result->count());
242
    }
243
    
244
    public function testGetLatestPost()
@@ 255-263 (lines=9) @@
252
        $this->assertNull($forumWithoutPosts->getLatestPost());
253
    }
254
    
255
    public function testGetNumTopics()
256
    {
257
        $forumWithPosts = $this->objFromFixture("Forum", "general");
258
        
259
        $this->assertEquals($forumWithPosts->getNumTopics(), 6);
260
        
261
        $forumWithoutPosts = $this->objFromFixture("Forum", "forum1cat2");
262
263
        $this->assertEquals($forumWithoutPosts->getNumTopics(), 0);
264
    }
265
    
266
    public function testGetTotalAuthors()
@@ 266-274 (lines=9) @@
263
        $this->assertEquals($forumWithoutPosts->getNumTopics(), 0);
264
    }
265
    
266
    public function testGetTotalAuthors()
267
    {
268
        $forumWithPosts = $this->objFromFixture("Forum", "general");
269
        
270
        $this->assertEquals($forumWithPosts->getNumAuthors(), 4);
271
        
272
        $forumWithoutPosts = $this->objFromFixture("Forum", "forum1cat2");
273
274
        $this->assertEquals($forumWithoutPosts->getNumAuthors(), 0);
275
    }
276
277
    /**