SONARPHP-305 Add helper for test.