Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3917

How to set Enviorment Variables for Symfony 4 with PHP and XAMPP in Windows

$
0
0

I am working on a Symfony 4.4 project.

I need to run scripts on my local enviorment.

The CLI to run phpunit is APP_ENV=test phpdbg -d memory_limit=-1 -qrr vendor/phpunit/phpunit/phpunit --coverage-text

But the problem is that I dont know how to properly set APP_ENV variable because I get this error:

APP_ENV=test : The term 'APP_ENV=test' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spellingof the name, or if a path was included, verify that the path is correct and try again.

The file for database connection is:

.env.test.local:

APP_ENV=testdatabase_host="localhost"database_port="3306"database_name="xxx_test"database_user="root"database_password=""

Viewing all articles
Browse latest Browse all 3917

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>