php-code-coverage
php-code-coverage copied to clipboard
Private Empty Constructor Coverage
Found an inconsistency when using private constructors
final class Demo
{
private function __construct(){}
public static function returnTrue()
{
return true;
}
}
vs.
final class Demo
{
private function __construct()
{
}
public static function returnTrue()
{
return true;
}
}
Assuming the static function is covered, the first formatting shows 100%, all lines covered. The second formatting shows two uncovered lines (3 and 5 to be specific). No other changes to the file or tests, just two extra carriage returns.
I cannot reproduce this.
