Files
php-flasher/tests/Prime/Stamp/HandlerStampTest.php
T
2024-04-09 07:57:01 +00:00

24 lines
651 B
PHP

<?php
declare(strict_types=1);
namespace Flasher\Tests\Prime\Stamp;
use Flasher\Prime\Stamp\PluginStamp;
use Flasher\Prime\Stamp\PresentableStampInterface;
use Flasher\Prime\Stamp\StampInterface;
use PHPUnit\Framework\TestCase;
final class HandlerStampTest extends TestCase
{
public function testHandlerStamp(): void
{
$stamp = new PluginStamp('toastr');
$this->assertInstanceOf(StampInterface::class, $stamp);
$this->assertInstanceOf(PresentableStampInterface::class, $stamp);
$this->assertSame('toastr', $stamp->getPlugin());
$this->assertSame(['plugin' => 'toastr'], $stamp->toArray());
}
}