Skip to content

Commit

Permalink
Closes #286
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 23, 2023
1 parent 037d147 commit cda3900
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/attributes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,14 @@ in the context of :ref:`preventing unintentionally covered code <risky-tests.uni
| Production Code | yes | yes | no |
+-----------------+-------------+--------------+------------+

The ``CodeCoverageIgnore`` attribute can be used to to :ref:`ignore <code-coverage.ignoring-code-blocks>`
a class or method for code coverage.
The ``CodeCoverageIgnore`` attribute can be used in production code to to
:ref:`ignore <code-coverage.ignoring-code-blocks>` a class or method for code coverage.

.. admonition:: Warning

Using this attribute in production code may lead to problems when the code production
code uses the Reflection API to instantiate attributes it is not responsible for, for
instance PHPUnit's.

Data Provider
=============
Expand Down

0 comments on commit cda3900

Please sign in to comment.