Skip to content

Commit df15005

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: [Messenger] Delete obsolete `versionadded` directive Readd paragraph Fix wrong env variable name
2 parents 06b180c + 7ee2e1f commit df15005

File tree

2 files changed

+6
-28
lines changed

2 files changed

+6
-28
lines changed

messenger.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2481,10 +2481,6 @@ middleware and *only* include your own:
24812481
Middleware for Doctrine
24822482
~~~~~~~~~~~~~~~~~~~~~~~
24832483

2484-
.. versionadded:: 1.11
2485-
2486-
The following Doctrine middleware was introduced in DoctrineBundle 1.11.
2487-
24882484
If you use Doctrine in your app, a number of optional middleware exist that you
24892485
may want to use:
24902486

testing/bootstrap.rst

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@ You can modify this file to add custom logic:
2525
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
2626
}
2727
28-
+ if (isset($_ENV['BOOTSTRAP_CLEAR_CACHE_ENV'])) {
29-
+ // executes the "php bin/console cache:clear" command
30-
+ passthru(sprintf(
31-
+ 'APP_ENV=%s php "%s/../bin/console" cache:clear --no-warmup',
32-
+ $_ENV['BOOTSTRAP_CLEAR_CACHE_ENV'],
33-
+ __DIR__
34-
+ ));
35-
+ }
28+
+ // executes the "php bin/console cache:clear" command
29+
+ passthru(sprintf(
30+
+ 'APP_ENV=%s php "%s/../bin/console" cache:clear --no-warmup',
31+
+ $_ENV['APP_ENV'],
32+
+ __DIR__
33+
+ ));
3634
3735
.. note::
3836

@@ -49,21 +47,5 @@ You can modify this file to add custom logic:
4947
<!-- ... -->
5048
</phpunit>
5149
52-
Now, you can update the ``phpunit.xml.dist`` file to declare the custom
53-
environment variable introduced to ``tests/bootstrap.php``:
54-
55-
.. code-block:: xml
56-
57-
<!-- phpunit.xml.dist -->
58-
<?xml version="1.0" encoding="UTF-8" ?>
59-
<phpunit>
60-
<php>
61-
<env name="BOOTSTRAP_CLEAR_CACHE_ENV" value="test"/>
62-
<!-- ... -->
63-
</php>
64-
65-
<!-- ... -->
66-
</phpunit>
67-
6850
Now, when running ``vendor/bin/phpunit``, the cache will be cleared
6951
automatically by the bootstrap file before running all tests.

0 commit comments

Comments
 (0)