8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ece334 commit 43e7043Copy full SHA for 43e7043
components/phpunit_bridge.rst
@@ -500,7 +500,7 @@ is mocked so it uses the mocked time if no timestamp is specified.
500
Other functions with an optional timestamp parameter that defaults to ``time()``
501
will still use the system time instead of the mocked time. This means that you
502
may need to change some code in your tests. For example, instead of ``new DateTime()``,
503
-you should use ``DateTime::createFromFormat('U', time())`` to use the mocked
+you should use ``DateTime::createFromFormat('U', (string) time())`` to use the mocked
504
``time()`` function.
505
506
To use the ``ClockMock`` class in your test, add the ``@group time-sensitive``
0 commit comments