From 554801384d6d29913105a6b000f889f9d70083ff Mon Sep 17 00:00:00 2001 From: Hamza Amrouche Date: Fri, 12 Apr 2019 15:35:33 +0200 Subject: [PATCH 1/2] [PhpUnitBridge] ClockMock does not mock gmdate() --- components/phpunit_bridge.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/phpunit_bridge.rst b/components/phpunit_bridge.rst index dec8e1cf10a..d56affc807c 100644 --- a/components/phpunit_bridge.rst +++ b/components/phpunit_bridge.rst @@ -325,7 +325,7 @@ Clock Mocking The :class:`Symfony\\Bridge\\PhpUnit\\ClockMock` class provided by this bridge allows you to mock the PHP's built-in time functions ``time()``, -``microtime()``, ``sleep()`` and ``usleep()``. Additionally the function +``microtime()``, ``sleep()``, ``usleep()`` and``gmdate``. Additionally the function ``date()`` 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. From 982148c6f5032fcf6d94cafcad3d22c8cba88457 Mon Sep 17 00:00:00 2001 From: Hamza Amrouche Date: Fri, 12 Apr 2019 15:44:02 +0200 Subject: [PATCH 2/2] fixes --- components/phpunit_bridge.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/phpunit_bridge.rst b/components/phpunit_bridge.rst index d56affc807c..38892fe0599 100644 --- a/components/phpunit_bridge.rst +++ b/components/phpunit_bridge.rst @@ -325,7 +325,7 @@ Clock Mocking The :class:`Symfony\\Bridge\\PhpUnit\\ClockMock` class provided by this bridge allows you to mock the PHP's built-in time functions ``time()``, -``microtime()``, ``sleep()``, ``usleep()`` and``gmdate``. Additionally the function +``microtime()``, ``sleep()``, ``usleep()`` and ``gmdate``. Additionally the function ``date()`` 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.