You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
22 lines
654 B
PHP
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());
|
|
}
|
|
}
|