Skip to content

failOnPhpunitWarning="false" has no effect #6368

Description

@kells64000
Q A
PHPUnit version 12.3.11
PHP version 8.4.12
Installation Method Composer

Summary

The failOnPhpunitWarning phpunit attribute configuration doesn't work.
It is not mentioned in the documentation, but is present in the phpunit.xsd file.

Current behavior

When I run tests with --do-not-fail-on-phpunit-warning cli option, I have no errors.
When I run tests with the failOnPhpunitWarning phpunit attribute configuration, I have an error.

How to reproduce

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
        bootstrap="vendor/autoload.php"
        failOnPhpunitWarning="false"
>

Expected behavior

No longer have errors when using failOnPhpunitWarning phpunit attribute configuration.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions