public function testFindOneReturnsFile() { $collection = $this->getGridFS(); $this->prepareFile(); $result = $collection->findOne(); $this->assertInstanceOf('MongoGridFSFile', $result); }