Skip to content

Commit

Permalink
BUGFIX: Skip tests when sqlite is not loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
paxuclus committed Apr 20, 2022
1 parent 8c87963 commit 4158a80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/UpsertTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,10 @@ public function Upsert_works(): void

private function getSQLiteConnection(): Connection
{
if (!extension_loaded('sqlite')) {
self::markTestSkipped('ext-sqlite3 is required for tests');
}

return DriverManager::getConnection([
'url' => 'sqlite:///:memory:'
]);
Expand Down

0 comments on commit 4158a80

Please sign in to comment.