Commit dc43b3f 1 parent 3776524 commit dc43b3f Copy full SHA for dc43b3f
File tree 1 file changed +24
-4
lines changed
src/Adapters/Laravel/Commands
1 file changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -90,10 +90,7 @@ public function handle()
90
90
),
91
91
null ,
92
92
// Envs ...
93
- $ parallel ? [
94
- 'LARAVEL_PARALLEL_TESTING ' => 1 ,
95
- 'LARAVEL_PARALLEL_TESTING_RECREATE_DATABASES ' => $ this ->option ('recreate-databases ' ),
96
- ] : [],
93
+ $ parallel ? $ this ->paratestEnvironmentVariables () : $ this ->phpunitEnvironmentVariables (),
97
94
))->setTimeout (null );
98
95
99
96
try {
@@ -181,6 +178,29 @@ protected function paratestArguments($options)
181
178
], $ options );
182
179
}
183
180
181
+ /**
182
+ * Get the array of environment variables for running PHPUnit.
183
+ *
184
+ * @return array
185
+ */
186
+ protected function phpunitEnvironmentVariables ()
187
+ {
188
+ return [];
189
+ }
190
+
191
+ /**
192
+ * Get the array of environment variables for running Paratest.
193
+ *
194
+ * @return array
195
+ */
196
+ protected function paratestEnvironmentVariables ()
197
+ {
198
+ return [
199
+ 'LARAVEL_PARALLEL_TESTING ' => 1 ,
200
+ 'LARAVEL_PARALLEL_TESTING_RECREATE_DATABASES ' => $ this ->option ('recreate-databases ' ),
201
+ ];
202
+ }
203
+
184
204
/**
185
205
* Clears any set Environment variables set by Laravel if the --env option is empty.
186
206
*
You can’t perform that action at this time.
0 commit comments