getGridFS() public method

Get instance of GridFS
public getGridFS ( string $name = 'fs' ) : GridFS
$name string prefix of files and chunks collection
return GridFS
Exemplo n.º 1
0
 /**
  * @expectedException \Sokil\Mongo\Exception
  * @expectedExceptionMessage Must be instance of \Sokil\Mongo\GridFS
  */
 public function testGetGridFs_SpecifiedGridFSClassInMappingIsNotInstanceOfGridFS()
 {
     $this->database->map(array('gridfs' => '\\stdClass'));
     $this->database->getGridFS('gridfs');
     $this->fail('Must be exception');
 }