Code Duplication    Length = 10-10 lines in 2 locations

mysite/tests/Controllers/RatingApiControllerTest.php 2 locations

@@ 32-41 (lines=10) @@
29
        $this->assertContains('not be found', $result->message);
30
    }
31
32
    public function testResponseIncludesRating()
33
    {
34
        $response = $this->get('api/rating/foo/bar');
35
36
        $this->assertJson($response->getBody());
37
38
        $result = json_decode($response->getBody());
39
        $this->assertTrue($result->success);
40
        $this->assertSame(53, $result->rating);
41
    }
42
43
    public function testDetailedResponse()
44
    {
@@ 43-52 (lines=10) @@
40
        $this->assertSame(53, $result->rating);
41
    }
42
43
    public function testDetailedResponse()
44
    {
45
        $response = $this->get('api/rating/foo/bar?detailed');
46
47
        $this->assertJson($response->getBody());
48
49
        $result = json_decode($response->getBody());
50
        $this->assertTrue($result->success);
51
        $this->assertSame(3, $result->metrics->coverage);
52
    }
53
}
54