Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class MessengerServiceFactoryTest extends TestCase |
||
12 | { |
||
13 | /** |
||
14 | * @return void |
||
15 | * @throws UnknownServiceException |
||
16 | */ |
||
17 | public function testCreatesTelegramClient() |
||
18 | { |
||
19 | $factory = new MessengerServiceFactory(); |
||
20 | $service = $factory->create(Services::SERVICE_TELEGRAM); |
||
21 | |||
22 | $this->assertInstanceOf(TelegramClient::class, $service); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @return void |
||
27 | * @throws UnknownServiceException |
||
28 | */ |
||
29 | public function testThrowsExceptionForUnknownService() |
||
35 | } |
||
36 | } |
||
37 |