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 -----------------------------------