Skip to:
Content

BuddyPress.org

#8302 closed defect (bug) (fixed)

PHPUnit 7 throws a 'testsuite' element requires 'name' attribute warning

Reported by: r-a-y Owned by: netweb
Milestone: 7.0.0 Priority: normal
Severity: minor Version:
Component: Build/Test Tools Keywords: has-patch commit
Cc:

Description

Just upgraded my PHP CLI version to 7.1.33 and PHPUnit to 7.5.20 (WordPress only officially supports PHPUnit 7).

PHPUnit 7 throws a warning when running our unit tests:

Warning - The configuration file did not pass validation!
The following problems have been detected:

Line 10:
- Element 'testsuite': The attribute 'name' is required but missing.

Test results may not be as expected.

Attached patch fixes this.

Attachments (1)

8302.01.patch (738 bytes) - added by r-a-y 12 months ago.

Download all attachments as: .zip

Change History (3)

@r-a-y
12 months ago

#1 @imath
12 months ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 7.0.0

Hi @r-a-y

Looks good to me 👍

#2 @r-a-y
11 months ago

  • Resolution set to fixed
  • Status changed from new to closed

In 12667:

Tests: Fix missing 'name' attribute warning for PHPUnit 7.

Fixes #8302.

Note: See TracTickets for help on using tickets.