WordPress.org

Make WordPress Core

Opened 23 months ago

Closed 23 months ago

Last modified 14 months ago

#43203 closed defect (bug) (fixed)

Fix PHPUnit problems regarding @covers and @use

Reported by: jipmoors Owned by: SergeyBiryukov
Milestone: 5.1 Priority: normal
Severity: normal Version: 5.1
Component: Build/Test Tools Keywords:
Focuses: docs, coding-standards Cc:
PR Number:

Description

While trying to get an insight in the Tests that are implemented in WordPress, we came across some malformed @covers and @use statements.

This patch fixes these small problems.

Functions in the global namespace should be prefixed with :: for PHPUnit to understand they are global. This is not very well documented, but has been used in the codebase already on other tests.

Attachments (1)

fixes_covers_and_use_declarations.patch (12.3 KB) - added by jipmoors 23 months ago.

Download all attachments as: .zip

Change History (4)

#1 @SergeyBiryukov
23 months ago

  • Milestone changed from Awaiting Review to 5.0

#2 @SergeyBiryukov
23 months ago

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

In 42636:

Tests: Correct erroneous @covers and @use tags.

Props jipmoors.
Fixes #43203.

#3 @jorbin
14 months ago

  • Milestone changed from 5.0 to 5.1
Note: See TracTickets for help on using tickets.