Code Duplication    Length = 8-8 lines in 2 locations

tests/Unit/Http/RequestTest.php 2 locations

@@ 20-27 (lines=8) @@
17
        $this->assertInstanceOf('Ip2c\Http\Request', $this->sut);
18
    }
19
20
    public function testShouldReturnData()
21
    {
22
        $this->sut = new Request($this->httpMock('hello'));
23
24
        $data = $this->sut->doRequest('http://www', 'q=1');
25
26
        $this->assertEquals($data, 'hello');
27
    }
28
29
    public function testShouldRaiseException()
30
    {
@@ 29-36 (lines=8) @@
26
        $this->assertEquals($data, 'hello');
27
    }
28
29
    public function testShouldRaiseException()
30
    {
31
        $this->sut = new Request($this->httpMock(''));
32
33
        $data = $this->sut->doRequest('http://www', 'q=1');
34
35
        $this->assertEquals($data, '');
36
    }
37
38
    private function httpMock($stringReturned)
39
    {