| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 16 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php declare(strict_types=1);  | 
            ||
| 11 |     public function test_send_photo_by_path(): void { | 
            ||
| 12 | TelegramTest::loadEnvironment();  | 
            ||
| 13 | Telegram::setToken($_ENV['TELEGRAM_BOT_TOKEN']);  | 
            ||
| 14 | |||
| 15 | $requestData = [  | 
            ||
| 16 | 'chat_id' => $_ENV['TEST_USER_ID'],  | 
            ||
| 17 | 'photo' => __DIR__ . '/../../logo.png'  | 
            ||
| 18 | ];  | 
            ||
| 19 | |||
| 20 |         $request = Request::create('sendPhoto', $requestData); | 
            ||
| 21 | |||
| 22 |         $this->assertEquals('https://api.telegram.org/bot' . $_ENV['TELEGRAM_BOT_TOKEN'] . '/sendPhoto', $request['url']); | 
            ||
| 23 | |||
| 24 |         $response = Request::send('sendPhoto', $requestData); | 
            ||
| 25 | |||
| 26 | $this->assertTrue($response->isOk());  | 
            ||
| 27 | }  | 
            ||
| 29 | }  |