Skip to content

Commit 4686865

Browse files
committed
feature #6406 Added a note about the new "disabled" option for PHPUnitBridge (javiereguiluz)
This PR was squashed before being merged into the master branch (closes #6406). Discussion ---------- Added a note about the new "disabled" option for PHPUnitBridge This fixes #6386. Commits ------- e924dd8 Added a note about the new "disabled" option for PHPUnitBridge
2 parents d84d9ff + e924dd8 commit 4686865

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

components/phpunit_bridge.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ PHPUnit_ will stop your test suite once a deprecation notice is triggered whose
112112
message contains the ``"foobar"`` string.
113113

114114
Making Tests Fail
115-
-----------------
115+
~~~~~~~~~~~~~~~~~
116116

117117
By default, any non-legacy-tagged or any non-`@-silenced`_ deprecation notices
118118
will make tests fail. Alternatively, setting ``SYMFONY_DEPRECATIONS_HELPER`` to
@@ -122,6 +122,14 @@ also set the value ``"weak"`` which will make the bridge ignore any deprecation
122122
notices. This is useful to projects that must use deprecated interfaces for
123123
backward compatibility reasons.
124124

125+
Disabling the Deprecation Helper
126+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
127+
128+
Set the ``SYMFONY_DEPRECATIONS_HELPER`` environment variable to ``disabled`` to
129+
completely disable the deprecation helper. This is useful to make use of the
130+
rest of features provided by this component without getting errors or messages
131+
related to deprecations.
132+
125133
Time-sensitive Tests
126134
--------------------
127135

0 commit comments

Comments
 (0)