From cda3900baad9229aa5b1f37d89c24f5afeefb767 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Thu, 23 Feb 2023 15:32:27 +0100 Subject: [PATCH] Closes #286 --- src/attributes.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 =============