Alcaeus\MongoDbAdapter\Tests\Mongo\MongoCommandCursorTest::testSerialize PHP Method

testSerialize() public method

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