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.
88
99To do this, first add the following file::
1010
11- // app/ tests.bootstrap.php
11+ // tests.bootstrap.php
1212 if (isset($_ENV['BOOTSTRAP_CLEAR_CACHE_ENV'])) {
1313 passthru(sprintf(
14- 'php "%s/console" cache:clear --env=%s --no-warmup',
14+ 'php "%s/bin/ console" cache:clear --env=%s --no-warmup',
1515 __DIR__,
1616 $_ENV['BOOTSTRAP_CLEAR_CACHE_ENV']
1717 ));
1818 }
1919
20- require __DIR__.' /autoload.php';
20+ require __DIR__ . '/vendor /autoload.php';
2121
2222Replace the test bootstrap file ``autoload.php `` in ``phpunit.xml.dist ``
2323with ``tests.bootstrap.php ``:
@@ -38,7 +38,7 @@ cache to be cleared:
3838
3939 <!-- phpunit.xml.dist -->
4040 <php >
41- <env name =" BOOTSTRAP_CLEAR_CACHE_ENV" value =" test" />
41+ <env name =" BOOTSTRAP_CLEAR_CACHE_ENV" value =" test" />
4242 </php >
4343
4444 This now becomes an environment variable (i.e. ``$_ENV ``) that's available
You can’t perform that action at this time.
0 commit comments