From what I have read it should be possible, but it might be faster to have a prepared sqlite database copied before the tests instead.
Take a look at this blogpost by Chris Duell for more info.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Okay, I feel like a total dumb-ass right now, because it seems like I'm totally missing the obvious... I am trying out Codeception, using some of the vids on here. And just as with my other tests, I'd like to use an in memory database.
I've set up the stuff in /testing/database.php, it's working in other tools like plain old PHPUnit.
But with Codeception I keep getting errors about table not found etc.
So my question; Is it possible to use an in memory database with Codeception, and how do I migrate (and optionally seed) it for every test?
Please or to participate in this conversation.