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
30 lines
715 B
PHP
30 lines
715 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the PHPFlasher package.
|
|
* (c) Younes KHOUBZA <younes.khoubza@gmail.com>
|
|
*/
|
|
|
|
namespace Flasher\Tests\Prime\Stamp;
|
|
|
|
use Flasher\Prime\Stamp\UuidStamp;
|
|
use Flasher\Tests\Prime\TestCase;
|
|
|
|
final class UuidStampTest extends TestCase
|
|
{
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function testUuidStamp()
|
|
{
|
|
$stamp = new UuidStamp();
|
|
|
|
$this->assertInstanceOf('Flasher\Prime\Stamp\StampInterface', $stamp);
|
|
$this->assertNotEmpty($stamp->getUuid());
|
|
|
|
$stamp = new UuidStamp('aaaa-bbbb-cccc');
|
|
$this->assertEquals('aaaa-bbbb-cccc', $stamp->getUuid());
|
|
$this->assertEquals(array('uuid' => 'aaaa-bbbb-cccc'), $stamp->toArray());
|
|
}
|
|
}
|