packages/sql-fixture/tests/Unit/Platform/Exception/DriverDetectionExceptionTest.php
1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Platform\Exception;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\TestCase;
9use SqlFixture\Platform\Exception\DriverDetectionException;
10
11#[CoversClass(DriverDetectionException::class)]
12final class DriverDetectionExceptionTest extends TestCase
13{
14 public function testDescribesTheFailure(): void
15 {
16 $exception = new DriverDetectionException();
17 self::assertSame('Unable to detect PDO driver', $exception->getMessage());
18 }
19}
20