Files
php-flasher/tests/Prime/EventDispatcher/Event/PostUpdateEventTest.php
T
2024-04-09 07:57:01 +00:00

28 lines
711 B
PHP

<?php
declare(strict_types=1);
namespace Flasher\Tests\Prime\EventDispatcher\Event;
use Flasher\Prime\EventDispatcher\Event\PostUpdateEvent;
use Flasher\Prime\Notification\Envelope;
use Flasher\Prime\Notification\Notification;
use PHPUnit\Framework\TestCase;
final class PostUpdateEventTest extends TestCase
{
public function testPostUpdateEvent(): void
{
$envelopes = [
new Envelope(new Notification()),
new Envelope(new Notification()),
new Envelope(new Notification()),
new Envelope(new Notification()),
];
$event = new PostUpdateEvent($envelopes);
$this->assertEquals($envelopes, $event->getEnvelopes());
}
}