Testing Use Cases Without a Database (and Why Your Tests Are Slow)
📰 Dev.to · Gabriel Anhaia
Your PHPUnit suite is slow because every test boots Laravel and migrates MySQL. Here is the in-memory + contract-test pattern that fixes it.
Your PHPUnit suite is slow because every test boots Laravel and migrates MySQL. Here is the in-memory + contract-test pattern that fixes it.