Passed
Branch 1.0.0 (1c6776)
by Alex
09:27
created

testGivenAValidDescriptionAValidVOIsReturned()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 11
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace StraTDeS\VO\Tests;
4
5
use StraTDeS\VO\Description;
6
use PHPUnit\Framework\TestCase;
7
8
class DescriptionTest extends TestCase
9
{
10
    public function testGivenAValidDescriptionAValidVOIsReturned(): void
11
    {
12
        // Arrange
13
        $description = "This is a valid description";
14
15
        // Act
16
        $descriptionVO = Description::fromValue($description);
17
18
        // Assert
19
        $this->assertInstanceOf(Description::class, $descriptionVO);
20
        $this->assertEquals($description, $descriptionVO->value());
21
    }
22
}
23