如何在覆盖率报告中忽略getter

This is about tests in a Symfony 3.4 project with php unit : "symfony/phpunit-bridge": "^3.0"

In order to get a coverage report of my tests, I run the following command.

./vendor/bin/simple-phpunit --coverage-html tests_rapport

The thing is when the rapport will be running and will check the entities...it will decrease coverage for getter that I'm not testing.

I'm considering that testing a setter is enought and the getter result should be ensured by the framework. That means I can't reach more than 50% coverage per entity.

So I was wondering if there was a way to ignore getters in the coverage reports.

I can still do something not very clean like testing the getter method with a true assert each time...but I was looking for a better way.

Thanks.