diff --git a/src/attributes.rst b/src/attributes.rst index 0c8c7d1b..0e191b75 100644 --- a/src/attributes.rst +++ b/src/attributes.rst @@ -269,9 +269,14 @@ in the context of :ref:`preventing unintentionally covered code ` -a class or method for code coverage. +The ``CodeCoverageIgnore`` attribute can be used in production code to to +:ref:`ignore ` 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 =============