| Total Complexity | 2 | 
| Total Lines | 19 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 12 | final class HttpSlackClientTest extends TestCase | ||
| 13 | { | ||
| 14 | public function testPostToChannel(): void | ||
| 15 |     { | ||
| 16 | $client = new HttpSlackClient( | ||
| 17 | $this->mockHttpClient(self::once()) | ||
| 18 | ); | ||
| 19 | |||
| 20 |         $client->postToChannel('channel_id', 'text'); | ||
| 21 | } | ||
| 22 | |||
| 23 | private function mockHttpClient(InvokedCount $invokedCount): HttpClientInterface | ||
| 31 | } | ||
| 32 | } | ||
| 33 |