Why won't PHPUnit code coverage report functions that aren't called?

前端 未结 2 983
[愿得一人]
[愿得一人] 2021-01-15 00:26

I\'m trying to get code coverage on one of my projects, but functions and classes that aren\'t called don\'t factor into the coverage calculations. It\'s hard to see what is

2条回答
  •  悲&欢浪女
    2021-01-15 01:20

    This appears to be an ongoing bug with XDebug and PHP 7.0, as covered in this issue: https://github.com/sebastianbergmann/php-code-coverage/issues/411 So, it should be working as I expect and there's nothing incorrect about my setup. Guess I'll just have to wait until the underlying cause (in XDebug) is found and fixed. Until then, the thread notes that turning on process isolation is a work-around.

提交回复
热议问题