laravel and phpunit: could not find driver (SQL: PRAGMA foreign_keys = ON;)



PHP Snippet 1:

sudo apt-get install php-sqlite3

PHP Snippet 2:

extension_dir = "<php installation directory>/php-7.4.3/ext"
extension=php_pdo_sqlite.dll
extension=php_sqlite3.dll
sqlite3.extension_dir = "<php installation directory>/php-7.4.3/ext"

PHP Snippet 3:

;extension=pdo_sqlite by removing the /;/ should look like this extension=pdo_sqlite

;extension=sqlite3 should be extension=sqlite3 without the ; symbol

PHP Snippet 4:

extension=pdo_sqlite

extension=sqlite3