UUIDV1Test   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 13
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testAProperUUIDV1IsReturnedOnGenerate() 0 11 1
1
<?php
2
3
namespace StraTDeS\VO\Tests\Single;
4
5
use Ramsey\Uuid\UuidInterface;
6
use StraTDeS\VO\Single\UUIDV1;
7
use PHPUnit\Framework\TestCase;
8
9
class UUIDV1Test extends TestCase
10
{
11
    public function testAProperUUIDV1IsReturnedOnGenerate()
12
    {
13
        // Arrange
14
15
        // Act
16
        $id = UUIDV1::generate();
17
18
        // Assert
19
        $this->assertInstanceOf(UUIDV1::class, $id);
20
        $this->assertInstanceOf(UuidInterface::class, $id->getId());
21
        $this->assertIsString($id->getHumanReadableId());
22
    }
23
}
24