Code Duplication    Length = 7-7 lines in 5 locations

tests/app/DiceAppTest.php 5 locations

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