Code Duplication    Length = 7-7 lines in 4 locations

tests/BlogFunctionalTest.php 2 locations

@@ 31-37 (lines=7) @@
28
        $this->assertEquals(200, $result->getStatusCode());
29
    }
30
31
    public function testMemberProfileWithMultibyteUrlAndName()
32
    {
33
        $result = $this->get(rawurlencode('آبید') . '/profile/' . rawurlencode('عبّاس-آبان'));
34
35
        $this->assertEquals(200, $result->getStatusCode());
36
        $this->assertContains('My Blog Post', $result->getBody());
37
    }
38
39
    public function testMemberProfileWithMultibyteUrlAndEnglishName()
40
    {
@@ 39-45 (lines=7) @@
36
        $this->assertContains('My Blog Post', $result->getBody());
37
    }
38
39
    public function testMemberProfileWithMultibyteUrlAndEnglishName()
40
    {
41
        $result = $this->get(rawurlencode('آبید') . '/profile/bob-jones');
42
43
        $this->assertEquals(200, $result->getStatusCode());
44
        $this->assertContains('My Blog Post', $result->getBody());
45
    }
46
}
47

tests/Model/BlogControllerFunctionalTest.php 2 locations

@@ 24-30 (lines=7) @@
21
        parent::setUp();
22
    }
23
24
    public function testGetCategoriesWithMultibyteUrl()
25
    {
26
        $result = $this->get('my-blog/category/' . rawurlencode('آبید'));
27
28
        $this->assertEquals(200, $result->getStatusCode());
29
        $this->assertContains('آبید', $result->getBody());
30
    }
31
32
    public function testGetTagsWithMultibyteUrl()
33
    {
@@ 32-38 (lines=7) @@
29
        $this->assertContains('آبید', $result->getBody());
30
    }
31
32
    public function testGetTagsWithMultibyteUrl()
33
    {
34
        $result = $this->get('my-blog/tag/' . rawurlencode('برتراند'));
35
36
        $this->assertEquals(200, $result->getStatusCode());
37
        $this->assertContains('برتراند', $result->getBody());
38
    }
39
}
40