sebastianbergmann/phpunit — Issue #467: Trait coverage not reported using --coverage-text
Author: rdlowrey
Created: 2012-01-24 21:58:37+00:00
State: open

PHPUnit 3.6.9
PHP_CodeCoverage 1.1.1
PHP 5.4.0RC5-dev

This may be by design because Traits aren't actually Classes, but a heads up all the same ...

When outputting code **coverage-text**, the coverage of Trait files is not reported in the textual coverage report, even if the code is covered at 100%.

When **showUncoveredFiles="true"** is specified, the coverage is reported as 0.00% even when 100% of the Trait's lines are covered. The **coverage-html** report, on the other hand, shows 100% coverage for each section (Lines/Methods/Classes) when the Trait file is fully covered.