Make TestSymbolDatabase::hasClassFunction's code snippet valid.

Hi,

While investigating ticket #6177, I've noticed that the code snippet that is used in TestSymbolDatabase::hasClassFunction is actually invalid. This trivial patch fixes that. Thanks to consider merging.

Cheers,
  Simon