File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,25 @@ related to deprecations.
226226
227227.. _write-assertions-about-deprecations :
228228
229+ Deprecation notices at autoloading time
230+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 ``.
237+
238+ .. code-block :: xml
239+
240+ <listeners >
241+ <listener class =" Symfony\Bridge\PhpUnit\SymfonyTestsListener" >
242+ <arguments >
243+ <array >
244+ <element key =" debug-class-loader" ><integer >0</integer ></element >
245+ ...
246+
247+
229248 Write Assertions about Deprecations
230249-----------------------------------
231250
You can’t perform that action at this time.
0 commit comments