Code Duplication    Length = 7-7 lines in 2 locations

tests/Unit/Http/HttpTest.php 2 locations

@@ 20-26 (lines=7) @@
17
        $this->assertInstanceOf('Ip2c\Http\Http', $this->sut);
18
    }
19
20
    public function testShouldReturnData()
21
    {
22
        $this->sut = new Http($this->libCurlReturnData());
23
        $returnedData = $this->sut->request('http://fake.request.mock');
24
25
        $this->assertTrue($returnedData == 'someData');
26
    }
27
28
    /**
29
     * @expectedException \Exception
@@ 33-39 (lines=7) @@
30
     * @expectedExceptionCode 1
31
     * @expectedExceptionMessage error
32
     */
33
    public function testShouldThrowException()
34
    {
35
        $this->sut = new Http($this->libCurlReturnsNothing());
36
        $returnedData = $this->sut->request('http://fake.request.mock');
37
38
        $this->assertTrue($returnedData == 'someData');
39
    }
40
41
    private function libCurlReturnData()
42
    {