Skip to content

Tests to show that PCOV has a bug in detecting executed lines.

Notifications You must be signed in to change notification settings

bolmstedt/pcov-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PCOV Coverage Test

This is a minimal case where PHPUnit will report correctly covered tests as risky and alternate between:

1) Bolmis\PcovTest\Tests\FooTest::testDoSecondThing
This test executed code that is not listed as code to be covered or used:
- Bolmis\PcovTest\Foo::doFirstThing

and

1) Bolmis\PcovTest\Tests\FooTest::testDoFirstThing
This test executed code that is not listed as code to be covered or used:
- Bolmis\PcovTest\Foo::doSecondThing

as the PHPUnit results are cached.

The issue is that PCOV somehow reports covered lines in a faulty way. The bug is probably in the PCOV clear function.

Simply run vendor/bin/phpunit --coverage-text and see the results.

About

Tests to show that PCOV has a bug in detecting executed lines.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages