3
votes

I'm using PHPUnit/Xdebug for running unit tests and although my Methods and Lines coverage percentile is in the 90s, Classes always reads as 0%. How is the classes coverage determined and is there something special I need to define to trigger it?

Thanks

1
Do you test the class and create it? My classes get proper code coverage. - Steven Scott
I have test classes which instantiate the class I'm testing, if that's what you mean. Here's a sample test class, if you care to look. - seagoj

1 Answers

3
votes

Through trial and error, I've determined that the classes tick off once the Methods and Lines for that class are at 100% coverage.