public function TimeTest::testGetCurrentMicroTime in Drupal 9
Same name and namespace in other branches
- 8 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\DatetimeCode
public function testGetCurrentMicroTime() {
$expected = 1234567.89;
$this
->assertEquals($expected, $this->time
->getCurrentMicroTime());
}