Code Duplication    Length = 7-7 lines in 5 locations

tests/app/DiceAppTest.php 5 locations

@@ 44-50 (lines=7) @@
41
        );
42
    }
43
44
    public function testAppCanRolld6AndReturnJson()
45
    {
46
        $request = $this->requestForPath("/json/d6");
47
        $responseOut = $this->runApp($request);
48
        $this->assertEquals($responseOut->getStatusCode(), 200);
49
        $this->assertEquals($responseOut->getHeader("Content-Type")[0], "application/json");
50
    }
51
52
    public function testAppCanRolld6AndReturnHtml()
53
    {
@@ 52-58 (lines=7) @@
49
        $this->assertEquals($responseOut->getHeader("Content-Type")[0], "application/json");
50
    }
51
52
    public function testAppCanRolld6AndReturnHtml()
53
    {
54
        $request = $this->requestForPath("/html/d6");
55
        $responseOut = $this->runApp($request);
56
        $this->assertEquals($responseOut->getStatusCode(), 200);
57
        $this->assertEquals($responseOut->getHeader("Content-Type")[0], "text/html");
58
    }
59
60
    public function testAppCanRolld20AndReturnHtml()
61
    {
@@ 60-66 (lines=7) @@
57
        $this->assertEquals($responseOut->getHeader("Content-Type")[0], "text/html");
58
    }
59
60
    public function testAppCanRolld20AndReturnHtml()
61
    {
62
        $request = $this->requestForPath("/html/d20");
63
        $responseOut = $this->runApp($request);
64
        $this->assertEquals($responseOut->getStatusCode(), 200);
65
        $this->assertEquals($responseOut->getHeader("Content-Type")[0], "text/html");
66
    }
67
68
    public function testAppCanRolldSteveandReturnJson()
69
    {
@@ 68-74 (lines=7) @@
65
        $this->assertEquals($responseOut->getHeader("Content-Type")[0], "text/html");
66
    }
67
68
    public function testAppCanRolldSteveandReturnJson()
69
    {
70
        $request = $this->requestForPath("/json/2dSteve");
71
        $responseOut = $this->runApp($request);
72
        $this->assertEquals($responseOut->getStatusCode(), 200);
73
        $this->assertEquals($responseOut->getHeader("Content-Type")[0], "application/json");
74
    }
75
76
    public function testAppCanRolldFateandReturnJson()
77
    {
@@ 76-82 (lines=7) @@
73
        $this->assertEquals($responseOut->getHeader("Content-Type")[0], "application/json");
74
    }
75
76
    public function testAppCanRolldFateandReturnJson()
77
    {
78
        $request = $this->requestForPath("/json/2dFate");
79
        $responseOut = $this->runApp($request);
80
        $this->assertEquals($responseOut->getStatusCode(), 200);
81
        $this->assertEquals($responseOut->getHeader("Content-Type")[0], "application/json");
82
    }
83
84
    /**
85
     * @param $request