Skip to content
12 changes: 12 additions & 0 deletions tests/phpunit/tests/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1794,6 +1794,18 @@ public function test_wp_is_stream( $path, $expected ) {
$this->assertSame( $expected, wp_is_stream( $path ) );
}

/**
* Test current_datetime.
*
* @ticket 53484
*
* @covers ::current_datetime
*/
public function test_current_datetime() {

$this->assertInstanceOf( 'DateTimeImmutable', current_datetime() );
}

/**
* Data provider for stream URL validation.
*
Expand Down