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

testSerialize() public method

public testSerialize ( )
    public function testSerialize()
    {
        $gridfs = $this->getGridFS();
        $gridfs->storeBytes('foo', ['filename' => 'foo.txt']);
        $gridfs->storeBytes('bar', ['filename' => 'bar.txt']);
        $cursor = $gridfs->find(['filename' => 'foo.txt']);
        $this->assertInternalType('string', serialize($cursor));
    }