| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function setUp() |
||
| 15 | { |
||
| 16 | $request = $this->prophesize('Ip2c\Http\Request'); |
||
| 17 | $response = $this->prophesize('Ip2c\Http\Response'); |
||
| 18 | $ipUtil = $this->prophesize('Ip2c\Ip\IpUtil'); |
||
| 19 | |||
| 20 | $stringResult = '1;ES;ESP;Spain'; |
||
| 21 | $request->doRequest(Argument::any(), Argument::any())->willReturn($stringResult); |
||
| 22 | $response->parseResult($stringResult)->willReturn($response->reveal()); |
||
| 23 | |||
| 24 | $this->sut = new Ip2c($request->reveal(), $response->reveal(), $ipUtil->reveal()); |
||
| 25 | } |
||
| 26 | |||
| 53 |