摘要： 本文讲的是Matt Stauffer: Environment specific variables in Laravel's testing environment， Matt Staufferhas a quick post to his site showing how you can set up and use environment specific variables in L
Matt Staufferhas a quick post to his site showing how you can set up and use environment specific variables in Laravel, specifically for your testing environment.
In Laravel, it's easy to set environment variables that are specific to your testing environment. Just edit your phpunit.xml file and set them as entries in the block [...] but what if you find yourself needing to exclude these values from version control?
He talks about the projecthe's working on and its integration with Twilio. He need to write some tests for a class that connected to the Twilio service but wanted an easy way to swap out the production credentials with the Twilio test ones. Instead of checking in the test credentials, he dropped them into his .envsettings file, one specific to the test environment.
以上是Matt Stauffer: Environment specific variables in Laravel's testing environment的全部内容，在云栖社区的博客、问答、云栖号、人物、课程等栏目也有其他相关内容，欢迎继续使用右上角搜索按钮进行搜索，以便于您获取更多的相关知识。
|...ot initialized. The Symbol Path can be set by: usin...||...in eval-ed code will be propagated outside eval(). ...||...ou can either remove these icons from the desktop o...|