phpspec-laravel icon indicating copy to clipboard operation
phpspec-laravel copied to clipboard

Feature/add support for custom env files

Open mrpiatek opened this issue 8 years ago • 2 comments

Added a feature to use custom .env files. It is done via phpspec configuration with testing_environment_file setting. The testing_environment_file will override the testing_environment setting.

Purpose:

  • You can have a dummy env file without any credentials commited to the repo and used for spec testing,
  • You can specify a different database connection in that env file that, for example, uses SQLite in memory database.

If you have any suggestions please feel free to message me as I'm more than happy to improve this. Thanks.

mrpiatek avatar Aug 08 '17 13:08 mrpiatek

This would be an awesome addition to the package. Have ran into a few issues where being able set set a new .env file for PhpSpec bootstrapping would be very useful.

dmk1991 avatar Sep 17 '17 03:09 dmk1991

Thanks @mrpiatek. Sorry for the delay in getting to this, I've started a new job and have had a busy couple of months. I'll try and give this a proper look this weekend.

BenConstable avatar Sep 18 '17 18:09 BenConstable