Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 23f915a

Browse filesBrowse files
committed
minor #11434 Added a note about PHPUnit setLocale() method (javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- Added a note about PHPUnit setLocale() method Fixes #11087. Commits ------- 3dcbddf Added a note about PHPUnit setLocale() method
2 parents b8da270 + 3dcbddf commit 23f915a
Copy full SHA for 23f915a

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎components/phpunit_bridge.rst

Copy file name to clipboardExpand all lines: components/phpunit_bridge.rst
+3-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.