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