Issue #697760 by jibran: Replace getInfo() in tests with native phpDoc

After https://www.drupal.org/node/2301125