Replace getInfo() in tests with native phpDoc +...

... annotations (following PHPUnit).
After https://www.drupal.org/node/2301125