Skip to content

Commit 6e0ff0b

Browse files
Simperfitjaviereguiluz
authored andcommitted
[PhpUnitBridge] ClockMock does not mock gmdate()
1 parent d286b45 commit 6e0ff0b

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)