views:

67

answers:

1

Hey everyone, I've been using PHPUnit to to do unit testing on a Symfony/Doctrine project I'm working on. It was working fine until yesterday when various classes dropped from 100% coverage to 98-99%. The reason for the change is because the opening left brace of these classes is no longer considered "covered" for some reason. Here's a screenshot of the issues: http://imgur.com/RCDzm.png

I've tried everything but I can't figure out what causes some classes to have this issue while the others show "complete" coverage just fine. It's more of an annoyance than anything since the tests still run just fine but it'd be nice to know what is going on. I'm using PHP 5.3.2, PHPUnit v3.4.15, and Xdebug v2.1.0 in case that makes a difference.

+1  A: 

Likely related to

Sebastian marked it as wontfix in PHPUnit and the XDebug guys say it's not a bug.

Gordon
Bingo! We had a stray require_once call in one of the unit test files and removing that (and depending on the autoloader instead) fixed the issue. Not sure if this was also due to turning off xdebug.auto_trace in the php.ini settings though.
Pradador