public function testConstructorShouldCastMongodbObjectIdToString() { $this->assertAttributeEquals($this->stringId, 'objectIdString', new ObjectID($this->mongoId)); }