mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 23:17:47 +01:00
24 lines
651 B
PHP
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());
|
|
}
|
|
}
|