From f09c56bfd3569fe7597dcce7e891bef495e04076 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 21 Jan 2022 05:58:13 +0000 Subject: [PATCH] Date/Time: Add a unit test for the return type of `current_datetime()`. Follow-up to [45883]. Props pbearne. Fixes #53484. git-svn-id: https://develop.svn.wordpress.org/trunk@52611 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/date/currentDatetime.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/phpunit/tests/date/currentDatetime.php diff --git a/tests/phpunit/tests/date/currentDatetime.php b/tests/phpunit/tests/date/currentDatetime.php new file mode 100644 index 0000000000..21ef037897 --- /dev/null +++ b/tests/phpunit/tests/date/currentDatetime.php @@ -0,0 +1,16 @@ +assertInstanceOf( 'DateTimeImmutable', current_datetime() ); + } +}