app-zap / PHPFramework

A lightweight PHP framework as a composition of different good features and concepts of other frameworks intended for easy use and fast development
Other
4 stars 1 forks source link

Improve database setup in phpunit tests #48

Closed smichaelsen closed 9 years ago

smichaelsen commented 9 years ago

At the moment a database named travis is required locally to run the tests successfully. Improve the setup to get rid of this dependency.

smichaelsen commented 9 years ago

Only the tests for DatabaseConnection should rely on a database connection. They can be skipped if no connection is available. Use a mock for the tests of other classes that access the DatabaseConnection.