mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
test: add StaticBag tests
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the PHPFlasher package.
|
||||
* (c) Younes KHOUBZA <younes.khoubza@gmail.com>
|
||||
*/
|
||||
|
||||
namespace Flasher\Tests\Prime\Storage\Bag;
|
||||
|
||||
use Flasher\Prime\Notification\Envelope;
|
||||
use Flasher\Prime\Notification\Notification;
|
||||
use Flasher\Prime\Storage\Bag\StaticBag;
|
||||
use Flasher\Tests\Prime\TestCase;
|
||||
|
||||
class StaticBagTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function testStaticBag()
|
||||
{
|
||||
$bag = new StaticBag();
|
||||
|
||||
$envelopes = array(
|
||||
new Envelope(new Notification()),
|
||||
new Envelope(new Notification()),
|
||||
);
|
||||
|
||||
$bag->set($envelopes);
|
||||
|
||||
$this->assertEquals($envelopes, $bag->get());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user