I\'m running into an interesting problem. I\'m using PHPUnit, and my tests take more memory every single time I run them. Ie...
2.25 MB
2.5 MB
3.0 MB
If you are using PDO (or similar database abstraction), then you can use "sqlite::memory:" as you DSN. This has three great advantages:
The disadvantage is that your SQL has to be portable between MySQL and SQLite. This might turn out to be quite a lot of work (For bigger projects it is often worth it, not just for tests, but for the way it will improve your code's design.) In your case ou mention using Doctrine, in the chat transcript, so you may already have a good abstraction, and therefore it may just run with no changes on SQLite.