Skip to content

Commit 3dcbddf

Browse files
committed
Added a note about PHPUnit setLocale() method
1 parent f866de7 commit 3dcbddf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/phpunit_bridge.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ The PHPUnit Bridge
1010

1111
It comes with the following features:
1212

13-
* Forces the tests to use a consistent locale (``C``);
13+
* Forces the tests to use a consistent locale (``C``) (if you create
14+
locale-sensitive tests, use PHPUnit's ``setLocale()`` method);
1415

1516
* Auto-register ``class_exists`` to load Doctrine annotations (when used);
1617

@@ -513,7 +514,7 @@ namespaces in the ``phpunit.xml`` file, as done for example in the
513514
</listener>
514515
</listeners>
515516
</phpunit>
516-
517+
517518
Under the hood, a PHPUnit listener injects the mocked functions in the tested
518519
classes' namespace. In order to work as expected, the listener has to run before
519520
the tested class ever runs. By default, the mocked functions are created when the

0 commit comments

Comments
 (0)