Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
9 / 9
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('integration');
11
12use Phexium\Plugin\SqlDriver\Adapter\MysqlDriver;
13use Tests\Phexium\Component\Support\PdoRegistry;
14
15// @codeCoverageIgnoreStart
16require_once __DIR__.'/BaseSqlDriverTests.php';
17registerBaseSqlDriverTests();
18$dbName = null;
19beforeAll(function () use (&$dbName): void {
20    $dbName = PdoRegistry::initializeMysql();
21});
22afterAll(function () use (&$dbName): void {
23    PdoRegistry::cleanupMysql($dbName);
24});
25// @codeCoverageIgnoreEnd
26
27beforeEach(function (): void {
28    $this->pdo = PdoRegistry::getConnection();
29    $this->pdo->beginTransaction();
30    $this->driver = new MysqlDriver($this->pdo);
31});
32
33afterEach(function (): void {
34    $this->pdo->rollBack();
35});