From 719526ee277e1273df07e5c08b1414e5c90d1948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Bla=C5=BEek?= Date: Wed, 19 Sep 2018 13:16:11 +0200 Subject: [PATCH] #10360 disable DebugClassLoader doc --- components/phpunit_bridge.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/components/phpunit_bridge.rst b/components/phpunit_bridge.rst index 571e3b2d368..a7b5915a47f 100644 --- a/components/phpunit_bridge.rst +++ b/components/phpunit_bridge.rst @@ -226,6 +226,25 @@ related to deprecations. .. _write-assertions-about-deprecations: +Deprecation notices at autoloading time +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +By default, the PHPUnit Bridge uses ``DebugClassLoader`` from Debug component to +throw deprecation notices at autoloading time. It attempts to throw more helpful +exceptions when a class isn't found by the registered autoloaders. +All autoloaders that implement a findFile() method are replaced with a ``DebugClassLoader`` wrapper. +This can be disabled by setting ``debug-class-loader`` option to ``0`` in ``phpunit.xml.dist``. + +.. code-block:: xml + + + + + + 0 + ... + + Write Assertions about Deprecations -----------------------------------