| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function testSendSuccess() |
||
| 34 | { |
||
| 35 | $container = []; |
||
| 36 | |||
| 37 | $response = $this->getMockHttpResponse('ToneRequestSuccess.txt'); |
||
| 38 | $httpClient = $this->getMockHttpClientWithHistoryAndResponses($container, [$response]); |
||
| 39 | |||
| 40 | $service = new Service($httpClient); |
||
| 41 | $service->initialize(['username' => 'adam', 'password' => '123']); |
||
| 42 | |||
| 43 | $request = $service->tone(['text' => 'test text']); |
||
| 44 | $request->send(); |
||
| 45 | } |
||
| 46 | } |
||
| 47 |