Refactoring

This commit is contained in:
Alex
2025-07-11 20:33:26 +03:00
parent 2b8a19cd3e
commit 0c91886ff0
19 changed files with 377 additions and 110 deletions
+2 -4
View File
@@ -38,12 +38,10 @@ final class BotCommandTest extends TestCase
#[Test]
public function canBeCreatedFromArrayWithOptionalDataNull(): void
{
$data = [
$command = BotCommand::fromArray([
'name' => 'help',
'description' => null,
];
$command = BotCommand::fromArray($data);
]);
$this->assertInstanceOf(BotCommand::class, $command);
$this->assertSame('help', $command->name);