How to simulate db failures when unit testing
I use phpUnit and write my tests involving databases by extending
PHPUnit_Extensions_Database_TestCase. How do I simulate database failures
to test my error checking? What kind of failures might occur that I should
test, other than the db being down?
I found this Ruby on Rails question, but found it not to be relevant to
phpUnit.
No comments:
Post a Comment