Files
php-flasher/Tests/Envelope/Stamp/UuidStampTest.php
T
KHOUBZA Younes 26d4ca787f update namespace
2020-12-03 09:15:47 +01:00

22 lines
654 B
PHP

<?php
namespace Flasher\Prime\Tests\Envelope\Stamp;
use Flasher\Prime\Envelope;
use PHPUnit\Framework\TestCase;
final class UuidStampTest extends TestCase
{
public function testConstruct()
{
$notification = $this->getMockBuilder('Flasher\Prime\Notification\NotificationInterface')->getMock();
$stamp = new \Flasher\Prime\Stamp\UuidStamp();
$envelop = new Envelope($notification, array($stamp));
$this->assertSame($stamp, $envelop->get('Flasher\Prime\Stamp\UuidStamp'));
$this->assertInstanceOf('Flasher\Prime\Stamp\UuidStamp', $stamp);
$this->assertNotEmpty($stamp->getUuid());
}
}