I'm running module tests with PHPUnit and want to get coverage reports on the tests. I've successfully been doing this in the past, but somehow i cannot get it working again and I have no idea why it's not working any longer. The only difference is that i now run PHP 5.4 instead of 5.3.

1 Answer
1

Codecoverage is about the source-code form. The source-code form is the variant of the software you make changes to.

A phar file is an archive. Similar to PHP code encoded by Zend Encoder or Ioncube Encoder or even APC, code coverage can not work for these and more importantly: Code coverage as a metric does not make any sense to work for these files.

So you might just wonder, but wonder twice and think about why it is this way. Try to find an explanation in your own words why reporting code-coverage for phar files is of no use.