Code Duplication    Length = 7-9 lines in 2 locations

tests/ServiceTest.php 2 locations

@@ 93-101 (lines=9) @@
90
     * @dataProvider checkAnswerEmptyArgumentsData
91
     * @covers ::checkAnswer
92
     */
93
    public function checkAnswerEmptyArguments($challenge, $response)
94
    {
95
        $service = new Service($this->getGuzzleClient(), 'notest', 'notest');
96
        $response = $service->checkAnswer('notest', $challenge, $response);
97
98
        $this->assertInstanceOf('\TraderInteractive\SolveMedia\Response', $response);
99
        $this->assertFalse($response->valid());
100
        $this->assertSame('incorrect-solution', $response->getMessage());
101
    }
102
103
    public function checkAnswerEmptyArgumentsData()
104
    {
@@ 122-128 (lines=7) @@
119
     * @dataProvider checkAnswerErrorResponseData
120
     * @covers ::checkAnswer
121
     */
122
    public function checkAnswerErrorResponse($hashKey, Response $guzzleResponse, $message)
123
    {
124
        $service = new Service($this->getGuzzleClient($guzzleResponse), 'notest', 'notest', $hashKey);
125
        $response = $service->checkAnswer('notest', 'foo', 'bar');
126
        $this->assertFalse($response->valid());
127
        $this->assertSame($message, $response->getMessage());
128
    }
129
130
    public function checkAnswerErrorResponseData()
131
    {