Conditions | 1 |
Paths | 1 |
Total Lines | 30 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function testResponseNotFound() |
||
14 | { |
||
15 | $request = new Request('POST', 'http://foo.bar/baz', [ |
||
16 | 'foo' => 'bar', |
||
17 | 'baz' => 1, |
||
18 | ], 'SuperBody'); |
||
19 | |||
20 | $e = GuzzleStubException::responseNotFound($request); |
||
21 | |||
22 | $this->assertEquals("Can`t find suitable response for request [array ( |
||
23 | 'method' => 'POST', |
||
24 | 'uri' => 'http://foo.bar/baz', |
||
25 | 'body' => 'SuperBody', |
||
26 | 'protocol_version' => '1.1', |
||
27 | 'headers' => |
||
28 | array ( |
||
29 | 'Host' => |
||
30 | array ( |
||
31 | 0 => 'foo.bar', |
||
32 | ), |
||
33 | 'foo' => |
||
34 | array ( |
||
35 | 0 => 'bar', |
||
36 | ), |
||
37 | 'baz' => |
||
38 | array ( |
||
39 | 0 => '1', |
||
40 | ), |
||
41 | ), |
||
42 | )]", $e->getMessage()); |
||
43 | } |
||
52 |