Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
8 / 8
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3// ╔════════════════════════════════════════════════════════════╗
4// ║ MIT Licence (#Expat) - https://opensource.org/licenses/MIT ║
5// ║ Copyright 2026 Frederic Poeydomenge <dyno@phexium.com>     ║
6// ╚════════════════════════════════════════════════════════════╝
7
8declare(strict_types=1);
9
10pest()->group('unit');
11
12use AppDemo\User\Infrastructure\InMemoryUserRepository;
13use AppDemo\User\Infrastructure\Mapper\UserMapper;
14use Phexium\Plugin\IdGenerator\Adapter\TimestampIdGenerator;
15use Phexium\Plugin\SqlDriver\Adapter\InMemoryDriver;
16
17// @codeCoverageIgnoreStart
18require __DIR__.'/BaseUserRepositoryTests.php';
19// @codeCoverageIgnoreEnd
20
21beforeEach(function (): void {
22    $mapper = new UserMapper(new TimestampIdGenerator());
23    $this->repository = new InMemoryUserRepository(
24        new InMemoryDriver(),
25        $mapper
26    );
27});