Code Duplication    Length = 7-9 lines in 2 locations

tests/ServiceTest.php 2 locations

@@ 86-94 (lines=9) @@
83
     * @dataProvider checkAnswerEmptyArgumentsData
84
     * @covers ::checkAnswer
85
     */
86
    public function checkAnswerEmptyArguments($challenge, $response)
87
    {
88
        $service = new Service($this->getGuzzleClient(), 'notest', 'notest');
89
        $response = $service->checkAnswer('notest', $challenge, $response);
90
91
        $this->assertInstanceOf('\TraderInteractive\SolveMedia\Response', $response);
92
        $this->assertFalse($response->valid());
93
        $this->assertSame('incorrect-solution', $response->getMessage());
94
    }
95
96
    public function checkAnswerEmptyArgumentsData()
97
    {
@@ 115-121 (lines=7) @@
112
     * @dataProvider checkAnswerErrorResponseData
113
     * @covers ::checkAnswer
114
     */
115
    public function checkAnswerErrorResponse($hashKey, Response $guzzleResponse, $message)
116
    {
117
        $service = new Service($this->getGuzzleClient($guzzleResponse), 'notest', 'notest', $hashKey);
118
        $response = $service->checkAnswer('notest', 'foo', 'bar');
119
        $this->assertFalse($response->valid());
120
        $this->assertSame($message, $response->getMessage());
121
    }
122
123
    public function checkAnswerErrorResponseData()
124
    {