I use an in memory sqlite database when doing my testing.
PHPUnit 7.3.4 by Sebastian Bergmann and contributors.
................................................................. 65 / 85 ( 76%)
.................... 85 / 85 (100%)
Time: 5.24 seconds, Memory: 26.00MB
OK (85 tests, 283 assertions)
PHPUnit 7.3.4 by Sebastian Bergmann and contributors.
................................................................. 65 / 85 ( 76%)
.................... 85 / 85 (100%)
Time: 5.27 seconds, Memory: 26.00MB
OK (85 tests, 283 assertions)
Add these two lines to your phpunit.xml
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>