Files
php-flasher/tests/Prime/EventDispatcher/Event/PostPersistEventTest.php
T
2023-01-31 01:48:30 +01:00

34 lines
825 B
PHP

<?php
/*
* This file is part of the PHPFlasher package.
* (c) Younes KHOUBZA <younes.khoubza@gmail.com>
*/
namespace Flasher\Tests\Prime\EventDispatcher\Event;
use Flasher\Prime\EventDispatcher\Event\PostPersistEvent;
use Flasher\Prime\Notification\Envelope;
use Flasher\Prime\Notification\Notification;
use Flasher\Tests\Prime\TestCase;
class PostPersistEventTest extends TestCase
{
/**
* @return void
*/
public function testPostPersistEvent()
{
$envelopes = array(
new Envelope(new Notification()),
new Envelope(new Notification()),
new Envelope(new Notification()),
new Envelope(new Notification()),
);
$event = new PostPersistEvent($envelopes);
$this->assertEquals($envelopes, $event->getEnvelopes());
}
}