PhpUnit + Symfony: Why coverage shows white instead of red and gives 100% on untested class?
- 阅读更多 关于 PhpUnit + Symfony: Why coverage shows white instead of red and gives 100% on untested class?
问题 I have a problem and I have created an empty project to reproduce the minimal situation that makes it repeatable. Problem A project with untested classes gives 100% coverage. The problematic methods are not indirectly called from somewhere else. Although there are other methods of the untested class that are indirectly called when testing another class. How to reproduce Step 1: Create an empty new symfony project. I have created a new symfony 3.3 project with this command: symfony new