Example #1
0
 /**
  * @covers oat\dtms\DateTime::getTimestampWithMicroseconds
  */
 public function testGetTimestampWithMicroseconds()
 {
     $dt = new DateTime('2015-08-08 10:10:10.123456');
     $this->assertSame(1439028610 + 123456 / 1000000.0, $dt->getTimestampWithMicroseconds());
 }