8000 Minor tweak · symfony/symfony-docs@6082b97 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6082b97

Browse files
committed
Minor tweak
1 parent 9ecff4b commit 6082b97

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

components/phpunit_bridge.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,25 @@ Alternatively, you can clone the `<https://github.com/symfony/phpunit-bridge>`_
4040
always use its very latest stable major version to get the most accurate
4141
deprecation report.
4242

43+
If you plan to :ref:`write-assertions-about-deprecations` and use the regular
44+
PHPUnit script (not the modified PHPUnit script provided by Symfony), you have
45+
to register a new `test listener`_ called ``SymfonyTestsListener``:
46+
47+
.. code-block:: xml
48+
49+
<!-- http://phpunit.de/manual/6.0/en/appendixes.configuration.html -->
50+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
51+
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.0/phpunit.xsd"
52+
>
53+
54+
<!-- ... -->
55+
56+
<listeners>
57+
<listener class=" 67CE Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
58+
</listeners>
59+
</phpunit>
60+
>>>>>>> Minor tweak
61+
4362
Usage
4463
-----
4564

0 commit comments

Comments
 (0)
0