Issue #2247595 by neclimdul: Fix phpunit coverage warnings.