You are here

public function TimeTest::testGetCurrentMicroTime in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Component/Datetime/TimeTest.php \Drupal\Tests\Component\Datetime\TimeTest::testGetCurrentMicroTime()
  2. 10 core/tests/Drupal/Tests/Component/Datetime/TimeTest.php \Drupal\Tests\Component\Datetime\TimeTest::testGetCurrentMicroTime()

Tests the getCurrentMicroTime method.

@covers ::getCurrentMicroTime

File

core/tests/Drupal/Tests/Component/Datetime/TimeTest.php, line 119

Class

TimeTest
@coversDefaultClass \Drupal\Component\Datetime\Time @group Datetime

Namespace

Drupal\Tests\Component\Datetime

Code

public function testGetCurrentMicroTime() {
  $expected = 1234567.89;
  $this
    ->assertEquals($expected, $this->time
    ->getCurrentMicroTime());
}