Problem/Motivation

./core/phpunit.xml.dist currently has the following documentation:

<!-- To disable deprecation testing uncomment the next line. -->
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak_vendors"/>

The comment was added in #2870194: Ensure that process-isolated tests can use Symfony's PHPunit bridge to catch usages of deprecated code when the lines said:

<!-- To disable deprecation testing uncomment the next line. -->
<!-- <env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/> -->

Since the the line was uncommented in #2927806: Use PHPUnit 6 for testing when PHP version >= 7.2 to its current state.

Proposed resolution

Update the comment to correctly instruct how to disable deprecation testing.

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

None.

API changes

None.

Data model changes

None.

CommentFileSizeAuthor
#3 2962736-3.patch885 bytesidebr

Comments

idebr created an issue. See original summary.

idebr’s picture

Issue summary: View changes
idebr’s picture

Status: Active » Needs review
StatusFileSize
new885 bytes

Suggestion for updated comment:

<!-- To disable deprecation testing completely set SYMFONY_DEPRECATIONS_HELPER value: 'disabled' -->
mile23’s picture

Status: Needs review » Reviewed & tested by the community

Nice catch.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

This was probably my fault...

Committed and pushed 6de60bc459 to 8.6.x and eb2e735c35 to 8.5.x. Thanks!

Eventually we want to swap this back - see #2961691: Change SYMFONY_DEPRECATIONS_HELPER back to strict

  • alexpott committed 6de60bc on 8.6.x
    Issue #2962736 by idebr: phpunit.xml.dist has an incorrect instruction...

  • alexpott committed eb2e735 on 8.5.x
    Issue #2962736 by idebr: phpunit.xml.dist has an incorrect instruction...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.