public function testCount() { $data = 'somebinarydata'; $id = $this->gridFs->storeBytes($data); $file = $this->gridFs->getFileById($id); $this->assertEquals(strlen($data), $file->count()); $this->assertEquals(strlen($data), count($file)); }