mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
41 lines
999 B
PHP
41 lines
999 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\UpdateEvent;
|
|
use Flasher\Prime\Notification\Envelope;
|
|
use Flasher\Prime\Notification\Notification;
|
|
use Flasher\Tests\Prime\TestCase;
|
|
|
|
class UpdateEventTest extends TestCase
|
|
{
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function testUpdateEvent()
|
|
{
|
|
$envelopes = array(
|
|
new Envelope(new Notification()),
|
|
new Envelope(new Notification()),
|
|
new Envelope(new Notification()),
|
|
new Envelope(new Notification()),
|
|
);
|
|
|
|
$event = new UpdateEvent($envelopes);
|
|
|
|
$this->assertEquals($envelopes, $event->getEnvelopes());
|
|
|
|
$envelopes = array(
|
|
new Envelope(new Notification()),
|
|
);
|
|
$event->setEnvelopes($envelopes);
|
|
|
|
$this->assertEquals($envelopes, $event->getEnvelopes());
|
|
}
|
|
}
|