Skip to content

Commit

Permalink
Check if "pdo_mysql" is loaded before test (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioheleno committed Mar 19, 2024
1 parent 382958c commit caff2db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/Module/MySqlContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ final class MySqlContainerTest extends TestCase

public static function setUpBeforeClass(): void
{
if (extension_loaded('pdo_mysql') === false) {
self::markTestSkipped('The pdo_mysql extension is not installed/enabled.');

return;
}

self::$container = new MySqlContainer();
self::$container->start();
}
Expand Down

0 comments on commit caff2db

Please sign in to comment.