Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#43203 closed defect (bug) (fixed)

Fix PHPUnit problems regarding @covers and @use

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

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 7 years ago.

Download all attachments as: .zip

Change History (4)

#1 @SergeyBiryukov
7 years ago

  • Milestone changed from Awaiting Review to 5.0

#2 @SergeyBiryukov
7 years 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
6 years ago

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