public function testSerialize() { $this->prepareData(); $cursor = $this->getCollection()->find(['foo' => 'bar']); $this->assertInternalType('string', serialize($cursor)); }