mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
22 lines
667 B
PHP
22 lines
667 B
PHP
<?php
|
|
|
|
namespace Flasher\Prime\Tests\Envelope\Stamp;
|
|
|
|
use Notify\Envelope;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
final class UuidStampTest extends TestCase
|
|
{
|
|
public function testConstruct()
|
|
{
|
|
$notification = $this->getMockBuilder('Flasher\Prime\TestsNotification\NotificationInterface')->getMock();
|
|
$stamp = new \Flasher\Prime\TestsStamp\UuidStamp();
|
|
|
|
$envelop = new Envelope($notification, array($stamp));
|
|
|
|
$this->assertSame($stamp, $envelop->get('Flasher\Prime\TestsStamp\UuidStamp'));
|
|
$this->assertInstanceOf('Flasher\Prime\TestsStamp\UuidStamp', $stamp);
|
|
$this->assertNotEmpty($stamp->getUuid());
|
|
}
|
|
}
|