PersonTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_it_can_be_registered() 0 6 1
1
<?php declare(strict_types = 1);
2
3
namespace Simplex\Quickstart\Module\Demo\Test\Unit;
4
5
use Simplex\Quickstart\Module\Demo\Model\Person;
6
use Simplex\Quickstart\Shared\Testing\UnitTest;
7
8
final class PersonTest extends UnitTest
9
{
10
    private const NAME = 'John Jones';
11
    private const EMAIL = '[email protected]';
12
    private const PASSWORD = 'foobar';
13
14
    public function test_it_can_be_registered()
15
    {
16
        $person = Person::register(self::NAME, self::EMAIL, self::PASSWORD);
17
18
        $this->assertEquals(self::NAME, $person->getName());
19
        $this->assertEquals(self::EMAIL, $person->getEmail());
20
    }
21
}
22