Issue #697760 by jibran: Replace getInfo() in tests with native phpDoc + annotations (following PHPUnit).