Skip to content

Check for unintentionally covered code is wrong #1069

Closed
@vdelau

Description

@vdelau

This commit fc1ce26 introduced a bug. !empty() was replaced with === [] instead of !== []

Some background for prosperity:

PHPUnit will report the following error, without listing any files/code:

This test executed code that is not listed as code to be covered or used:

Also confirmed that this does not exist in 12.1.0 (installed PHPUnit is version 12.0.10):

    "require-dev": {
        "phpunit/phpunit": "^12.0",
        "phpunit/php-code-coverage": "!=12.1.1"
    }

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions