File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,16 +8,16 @@ cache before running those tests.
8
8
9
9
To do this, first add the following file::
10
10
11
- // app/ tests.bootstrap.php
11
+ // tests.bootstrap.php
12
12
if (isset($_ENV['BOOTSTRAP_CLEAR_CACHE_ENV'])) {
13
13
passthru(sprintf(
14
- 'php "%s/console" cache:clear --env=%s --no-warmup',
14
+ 'php "%s/bin/ console" cache:clear --env=%s --no-warmup',
15
15
__DIR__,
16
16
$_ENV['BOOTSTRAP_CLEAR_CACHE_ENV']
17
17
));
18
18
}
19
19
20
- require __DIR__.' /autoload.php';
20
+ require __DIR__ . '/vendor /autoload.php';
21
21
22
22
Replace the test bootstrap file ``autoload.php `` in ``phpunit.xml.dist ``
23
23
with ``tests.bootstrap.php ``:
@@ -38,7 +38,7 @@ cache to be cleared:
38
38
39
39
<!-- phpunit.xml.dist -->
40
40
<php >
41
- <env name =" BOOTSTRAP_CLEAR_CACHE_ENV" value =" test" />
41
+ <env name =" BOOTSTRAP_CLEAR_CACHE_ENV" value =" test" />
42
42
</php >
43
43
44
44
This now becomes an environment variable (i.e. ``$_ENV ``) that's available
You can’t perform that action at this time.
0 commit comments