Issue #2287385 by neclimdul: Fixed PHPUnit coverage tests.