In Laravel 4
, we have three types of environments that can be defined: local
, production
and testing
.
I've even posted something about configuring the local
environment here: #
I like to use the above configuration to set the local database data, and to leave the production configuration ready, so when it is time to upload the file, do not have to mess with any configuration.
However, when I run the tests of phpunit
(which would invoke the environment of testing
of Laravel 4
), the database settings used have been production
.
I know I have a folder named app/config/testing
, where I can also add database.php
, but I would not like to "copy and paste" the local
settings to testing
, but only use the same configuration.
What is the best way to do this in Laravel 4
?