8000 minor #10364 [PHPUnitBridge] Describes how to disable DebugClassLoade… · symfony/symfony-docs@938cdaa · GitHub
[go: up one dir, main page]

Skip to content

Commit 938cdaa

Browse files
committed
minor #10364 [PHPUnitBridge] Describes how to disable DebugClassLoader (MarioBlazek)
This PR was merged into the master branch. Discussion ---------- [PHPUnitBridge] Describes how to disable DebugClassLoader Documents #10360 Commits ------- 719526e #10360 disable DebugClassLoader doc
2 parents cecc740 + 719526e commit 938cdaa

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

components/phpunit_bridge.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)
0