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 0a258db commit 716cb9cCopy full SHA for 716cb9c
components/phpunit_bridge.rst
@@ -540,7 +540,7 @@ is mocked so it uses the mocked time if no timestamp is specified.
540
Other functions with an optional timestamp parameter that defaults to ``time()``
541
will still use the system time instead of the mocked time. This means that you
542
may need to change some code in your tests. For example, instead of ``new DateTime()``,
543
-you should use ``DateTime::createFromFormat('U', time())`` to use the mocked
+you should use ``DateTime::createFromFormat('U', (string) time())`` to use the mocked
544
``time()`` function.
545
546
To use the ``ClockMock`` class in your test, add the ``@group time-sensitive``
0 commit comments