mirror of
https://github.com/symfony/recipes.git
synced 2026-09-14 08:36:27 +03:00
Move loading .env files to bootstrap.php
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
# define your env variables for the test env here
|
||||
KERNEL_CLASS=App\\Kernel
|
||||
KERNEL_CLASS='App\Kernel'
|
||||
APP_SECRET='s$cretf0rt3st'
|
||||
SHELL_VERBOSITY=-1
|
||||
SYMFONY_DEPRECATIONS_HELPER=999999
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"src/": "%SRC_DIR%/",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
|
||||
@@ -5,10 +5,11 @@
|
||||
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.5/phpunit.xsd"
|
||||
backupGlobals="false"
|
||||
colors="true"
|
||||
bootstrap="tests/bootstrap.php"
|
||||
bootstrap="src/.bootstrap.php"
|
||||
>
|
||||
<php>
|
||||
<ini name="error_reporting" value="-1" />
|
||||
<env name="APP_ENV" value="test" />
|
||||
</php>
|
||||
|
||||
<testsuites>
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
../../../../symfony/framework-bundle/3.3/src/.bootstrap.php
|
||||
@@ -1,5 +0,0 @@
|
||||
<?php
|
||||
|
||||
require dirname(__DIR__).'/vendor/autoload.php';
|
||||
|
||||
App\Kernel::bootstrapEnv('test');
|
||||
Reference in New Issue
Block a user