Skip to content

Commit 320b8ad

Browse files
committed
clarify silencing deprecations in tests
1 parent 2d1c269 commit 320b8ad

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

components/phpunit_bridge.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,18 @@ in the **Unsilenced** section of the deprecation report.
7373
Mark Tests as Legacy
7474
--------------------
7575

76-
There are four ways to mark a test as legacy:
76+
There are three ways to mark a test as legacy:
7777

7878
* (**Recommended**) Add the ``@group legacy`` annotation to its class or method;
7979

8080
* Make its class name start with the ``Legacy`` prefix;
8181

82-
* Make its method name start with ``testLegacy*()`` instead of ``test*()``;
82+
* Make its method name start with ``testLegacy*()`` instead of ``test*()``.
8383

84-
* Make its data provider start with ``provideLegacy*()`` or ``getLegacy*()``.
84+
.. note::
85+
86+
You can make your data provider start with ``provideLegacy*()`` or ``getLegacy*()``
87+
if they execute deprecated code.
8588

8689
Configuration
8790
-------------

0 commit comments

Comments
 (0)