public function convert() { return new MongoObjectID($this->objectIdString); }
public function testShouldBeCastableToString() { $objectId = new ObjectID($this->mongoId); $this->assertSame((string) $this->mongoId, (string) $objectId->convert()); }