public function testCreateWithString() { $date = new \MongoDate('1234567890', '123456'); $this->assertAttributeSame(1234567890, 'sec', $date); $this->assertAttributeSame(123000, 'usec', $date); }