Improving code coverage for phpunit