Skip to content

Commit

Permalink
Merge pull request #4 from netlogix/bugfix/skip-test-without-sqlite-e…
Browse files Browse the repository at this point in the history
…xtension

BUGFIX: Skip tests when sqlite is not loaded
  • Loading branch information
saschanowak authored Apr 20, 2022
2 parents 8c87963 + 4158a80 commit a43182f
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 a43182f

Please sign in to comment.