Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
4 / 4 |
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 | |
| 8 | declare(strict_types=1); |
| 9 | |
| 10 | use AppDemo\Library\Infrastructure\InMemoryBookRepository; |
| 11 | use Phexium\Plugin\IdGenerator\Adapter\TimestampIdGenerator; |
| 12 | use Phexium\Plugin\SqlDriver\Adapter\InMemoryDriver; |
| 13 | |
| 14 | // @codeCoverageIgnoreStart |
| 15 | require_once __DIR__.'/BaseBookRepositoryTests.php'; |
| 16 | registerBaseBookRepositoryTests(); |
| 17 | // @codeCoverageIgnoreEnd |
| 18 | |
| 19 | beforeEach(function (): void { |
| 20 | $driver = new InMemoryDriver(); |
| 21 | $this->repository = new InMemoryBookRepository($driver, new TimestampIdGenerator()); |
| 22 | }); |