8000 fix paths · Warxcell/symfony-docs@e075514 · GitHub
[go: up one dir, main page]

Skip to content

Commit e075514

Browse files
boedahwouterj
authored andcommitted
fix paths
* comment said `app/tests.bootstrap.php` but xml referenced the root * path to autoload was wrong * Symfony console now is in `/bin`
1 parent 94cf481 commit e075514

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

testing/bootstrap.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ cache before running those tests.
88

99
To 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

2222
Replace the test bootstrap file ``autoload.php`` in ``phpunit.xml.dist``
2323
with ``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

0 commit comments

Comments
 (0)
0