I cant find any Source on the Internet which can explain how to set up a Database Test in ZendFramework 2 with PHPUnit. I have UnitTests running for my Model, but cant find any Source which describes how to Setup the Database Connection in my Tests. Can anyone give me an Example or Link, how to build a bootstrap.php and setUp() Method for getting my Database Adapter with test connection to work?
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
|
The simplest way I found was to define a custom config file and load
And inside |
|||
|