8000 minor #11418 [PhpUnitBridge] ClockMock does not mock gmdate() (Simper… · opdavies/symfony-docs@98e1719 · GitHub
[go: up one dir, main page]

Skip to content

Commit 98e1719

Browse files
committed
minor symfony#11418 [PhpUnitBridge] ClockMock does not mock gmdate() (Simperfit)
This PR was squashed before being merged into the master branch (closes symfony#11418). Discussion ---------- [PhpUnitBridge] ClockMock does not mock gmdate() <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> This is a new feature proposed to the master branch, with the following doc update. Commits ------- 6e0ff0b [PhpUnitBridge] ClockMock does not mock gmdate()
2 parents 7ca5809 + 6e0ff0b commit 98e1719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/phpunit_bridge.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ Clock Mocking
325325

326326
The :class:`Symfony\\Bridge\\PhpUnit\\ClockMock` class provided by this bridge
327327
allows you to mock the PHP's built-in time functions ``time()``,
328-
``microtime()``, ``sleep()`` and ``usleep()``. Additionally the function
328+
``microtime()``, ``sleep()``, ``usleep()`` and ``gmdate``. Additionally the function
329329
``date()`` is mocked so it uses the mocked time if no timestamp is specified.
330330
Other functions with an optional timestamp parameter that defaults to ``time()``
331331
will still use the system time instead of the mocked time.

0 commit comments

Comments
 (0)
0