PlayerAssemblerTest::testPlayerAssembler()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
ccs 0
cts 4
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Tests\Game\Infrastructure\Repository\Doctrine;
6
7
use App\Game\Features\Authorization\PlayerDto;
8
use App\Game\Features\Player\Player\PlayerId;
9
use App\Game\Infrastructure\Repository\Doctrine\PlayerAssembler;
10
use App\Tests\Game\GameTestCase;
11
12
/**
13
 * @coversDefaultClass \App\Game\Infrastructure\Repository\Doctrine\PlayerAssembler
14
 */
15
final class PlayerAssemblerTest extends GameTestCase
16
{
17
    /**
18
     * @covers ::toPlayerDto
19
     */
20
    public function testPlayerAssembler(): void
21
    {
22
        $playerAssembler = new PlayerAssembler();
23
        $playerDto = $playerAssembler->toPlayerDto($this->createPlayer(new PlayerId()));
24
25
        self::assertInstanceOf(PlayerDto::class, $playerDto);
26
    }
27
}
28