From 3dcbddfd1d55254e2ca93fbfee599b438484e096 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 15 Apr 2019 15:25:21 +0200 Subject: [PATCH] Added a note about PHPUnit setLocale() method --- components/phpunit_bridge.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/phpunit_bridge.rst b/components/phpunit_bridge.rst index 8a5df2021d5..8512833f40a 100644 --- a/components/phpunit_bridge.rst +++ b/components/phpunit_bridge.rst @@ -10,7 +10,8 @@ The PHPUnit Bridge It comes with the following features: -* Forces the tests to use a consistent locale (``C``); +* Forces the tests to use a consistent locale (``C``) (if you create + locale-sensitive tests, use PHPUnit's ``setLocale()`` method); * Auto-register ``class_exists`` to load Doctrine annotations (when used); @@ -513,7 +514,7 @@ namespaces in the ``phpunit.xml`` file, as done for example in the - + Under the hood, a PHPUnit listener injects the mocked functions in the tested classes' namespace. In order to work as expected, the listener has to run before the tested class ever runs. By default, the mocked functions are created when the