Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions tests/phpunit/tests/functions/current_datetime.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

/**
* @group functions.php
*
* @covers ::current_datetime
*/
class Tests_Functions_current_datetime extends WP_UnitTestCase {

/**
* test the current_datetime function return correct class type
* @return void
*
*/
public function test_current_datetime_return_type() {

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