Skip to:
Content

BuddyPress.org

Opened 5 years ago

Closed 4 years ago

#8302 closed defect (bug) (fixed)

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

Reported by: r-a-y's profile r-a-y Owned by: netweb's profile 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 5 years ago.

Download all attachments as: .zip

Change History (3)

@r-a-y
5 years ago

#1 @imath
5 years 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
4 years 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.