packages/sql-fixture/tests/Unit/Platform/Exception/UnsupportedDriverExceptionTest.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\UnsupportedDriverException;
10
11#[CoversClass(UnsupportedDriverException::class)]
12final class UnsupportedDriverExceptionTest extends TestCase
13{
14 public function testDescribesTheFailure(): void
15 {
16 $exception = new UnsupportedDriverException('oracle');
17 self::assertSame('oracle', $exception->driver);
18 self::assertSame('Unsupported database driver: oracle', $exception->getMessage());
19 }
20}
21