PHPUnit triggers warnings in --debug mode

Created on 27 September 2024, 3 months ago

Problem/Motivation

PHPUnit in --debug mode throws PHP warnings.

Steps to reproduce

1. Setup Drupal 11 by this instruction: https://ddev.readthedocs.io/en/stable/users/quickstart/#drupal
2. Setup PHPUnit according https://www.drupal.org/docs/develop/automated-testing/phpunit-in-drupal/...
3. Run following commands

ddev start
ddev ssh
cd /var/www/html/web/core
../../vendor/bin/phpunit -c ./phpunit.xml --debug modules/help/tests/src/Functional

What happen?

PHPUnit triggers PHP Warnings below:

Test Triggered Suppressed PHP Warning (Drupal\Tests\help\Functional\ExperimentalHelpTest::testExperimentalHelp)
stat(): stat failed for /var/www/html/web/sites/simpletest/99207887/files/.htaccess
Test Triggered Suppressed PHP Warning (Drupal\Tests\help\Functional\ExperimentalHelpTest::testExperimentalHelp)
stat(): stat failed for /var/www/html/web/sites/simpletest/99207887/private/.htaccess
Test Triggered Suppressed PHP Warning (Drupal\Tests\help\Functional\ExperimentalHelpTest::testExperimentalHelp)
stat(): stat failed for /var/www/html/web/sites/simpletest/99207887/temp/.htaccess
Test Triggered Suppressed PHP Warning (Drupal\Tests\help\Functional\ExperimentalHelpTest::testExperimentalHelp)
stat(): stat failed for /var/www/html/web/sites/simpletest/99207887/files/css

What should happen?

There should be no warnings at all.

🐛 Bug report
Status

Active

Version

11.0 🔥

Component

phpunit

Created by

🇵🇱Poland jan.koprowski

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024