File tree Expand file tree Collapse file tree 1 file changed +18
-12
lines changed Expand file tree Collapse file tree 1 file changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -226,24 +226,30 @@ related to deprecations.
226
226
227
227
.. _write-assertions-about-deprecations :
228
228
229
- Deprecation notices at autoloading time
229
+ Deprecation Notices at Autoloading Time
230
230
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
231
231
232
- By default, the PHPUnit Bridge uses ``DebugClassLoader `` from Debug component to
233
- throw deprecation notices at autoloading time. It attempts to throw more helpful
234
- exceptions when a class isn't found by the registered autoloaders.
235
- All autoloaders that implement a findFile() method are replaced with a ``DebugClassLoader `` wrapper.
236
- This can be disabled by setting ``debug-class-loader `` option to ``0 `` in ``phpunit.xml.dist ``.
232
+ By default, the PHPUnit Bridge uses ``DebugClassLoader `` from the
233
+ :doc: `Debug component </components/debug >` to throw deprecation notices at
234
+ class autoloading time. This can be disabled with the ``debug-class-loader `` option.
237
235
238
236
.. code-block :: xml
239
237
240
- <listeners >
241
- <listener class =" Symfony\Bridge\PhpUnit\SymfonyTestsListener" >
242
- <arguments >
243
- <array >
244
- <element key =" debug-class-loader" ><integer >0</integer ></element >
245
- ...
238
+ <!-- phpunit.xml.dist -->
239
+ <!-- ... -->
240
+ <listeners >
241
+ <listener class =" Symfony\Bridge\PhpUnit\SymfonyTestsListener" >
242
+ <arguments >
243
+ <array >
244
+ <!-- set this option to 0 to disable the DebugClassLoader integration -->
245
+ <element key =" debug-class-loader" ><integer >0</integer ></element >
246
+ </array >
247
+ </arguments >
248
+ </listener >
249
+ </listeners >
246
250
251
+ .. versionadded :: 4.2
252
+ The ``DebugClassLoader `` integration was introduced in Symfony 4.2.
247
253
248
254
Write Assertions about Deprecations
249
255
-----------------------------------
You can’t perform that action at this time.
0 commit comments