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
10use Phexium\Plugin\SqlDriver\Adapter\PostgresqlDriver;
11use Tests\Phexium\Integration\Support\PdoRegistry;
12
13// @codeCoverageIgnoreStart
14require_once __DIR__.'/BaseSqlDriverTests.php';
15registerBaseSqlDriverTests();
16$dbName = null;
17beforeAll(function () use (&$dbName): void {
18    $dbName = PdoRegistry::initializePostgresql();
19});
20afterAll(function () use (&$dbName): void {
21    PdoRegistry::cleanupPostgresql($dbName);
22});
23// @codeCoverageIgnoreEnd
24
25beforeEach(function (): void {
26    $this->pdo = PdoRegistry::getConnection();
27    $this->pdo->beginTransaction();
28    $this->driver = new PostgresqlDriver($this->pdo);
29});
30
31afterEach(function (): void {
32    $this->pdo->rollBack();
33});