Skip to content

Test breaks with --coverage option when parsing files ending with c-style comment #330

@RowdyElectron

Description

@RowdyElectron

I have a file which ends with this line:

);/* End of process prefix group. */

Which causes this error:

{"error":{"type":"ErrorException","message":"Undefined offset: 59","file":"\/home\/philip\/projects\/parasol\/vendor\/phpunit\/php-code-coverage\/src\/CodeCoverage.php","line":697}}

I've been able to duplicate this error by placing:

);/**/

at the end of any processed php file. Appending to the end of a class doesn't cause any issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions