Added getUpdates

This commit is contained in:
Alex
2025-07-21 18:49:14 +03:00
parent 07c6bb35b4
commit 4c988c9005
13 changed files with 653 additions and 7 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace BushlanovDev\MaxMessengerBot\Tests\Models;
use BushlanovDev\MaxMessengerBot\Models\Image;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\TestCase;
#[CoversClass(Image::class)]
final class ImageTest extends TestCase
{
#[Test]
public function canBeCreatedFromArray(): void
{
$data = [
'url' => 'https://example.com/image.jpg',
];
$image = Image::fromArray($data);
$this->assertInstanceOf(Image::class, $image);
}
}