public function testGetFilename() { $id = $this->gridFs->storeBytes('somebinarydata', array('filename' => '/etc/hosts')); $this->assertEquals('/etc/hosts', $this->gridFs->getFileById($id)->getFilename()); }