diff --git a/components/phpunit_bridge.rst b/components/phpunit_bridge.rst index 934c425d368..cb77a1e376f 100644 --- a/components/phpunit_bridge.rst +++ b/components/phpunit_bridge.rst @@ -500,7 +500,7 @@ is mocked so it uses the mocked time if no timestamp is specified. Other functions with an optional timestamp parameter that defaults to ``time()`` will still use the system time instead of the mocked time. This means that you may need to change some code in your tests. For example, instead of ``new DateTime()``, -you should use ``DateTime::createFromFormat('U', time())`` to use the mocked +you should use ``DateTime::createFromFormat('U', (string) time())`` to use the mocked ``time()`` function. To use the ``ClockMock`` class in your test, add the ``@group time-sensitive``
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: