A
A
Artem Soshnikov2017-06-27 09:35:18
symfony
Artem Soshnikov, 2017-06-27 09:35:18

Why does phpunit show full coverage?

Please tell me why and under what conditions the code coverage report in phpunit contains empty (white) lines marked as n/a.
such methods generate an erroneous coverage report that reports 100% coverage when in fact only 1 method has completed (green).
Additional data:
phpunit 6.2.2
Xdebug 2.4.0
php-7.0
file ~6000 lines (please do not discuss this topic, I am not the author of this file)
6d5ad10e9d1e4745819cdbf873cd9f3e.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SerRashin, 2017-06-29
@SerRashin

Shows that everything is covered for the reason that most likely you have interfaces / constructors, etc. there.
Accordingly, there is no implementation, and there is nothing to cover.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question