for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace MaxBeckers\AmazonAlexa\Test\Response\Directives\APL\StandardCommand;
use MaxBeckers\AmazonAlexa\Response\Directives\APL\StandardCommand\IdleCommand;
use PHPUnit\Framework\TestCase;
class IdleCommandTest extends TestCase
{
public function testConstructor(): void
$command = new IdleCommand();
$this->assertInstanceOf(IdleCommand::class, $command);
}
public function testJsonSerialize(): void
$result = $command->jsonSerialize();
$this->assertSame(IdleCommand::TYPE, $result['type']);
$this->assertCount(1, $result);
public function testTypeConstant(): void
$this->assertSame('Idle', IdleCommand::TYPE);