Most of us do not use PHPUnit solely for Unit Tests but we also write Integration or Acceptance Tests with PHPUnit. One very common question then is how to interact with the database correctly in those tests. Let me show you the different options and their trade offs?
Get latest News, Widgets, Apps and much more straight into your INBOX for free. Just Enter your email address, Verify and join our Newsletter!