Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#43203 closed defect (bug) (fixed)

Fix PHPUnit problems regarding @covers and @use

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

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

Download all attachments as: .zip

Change History (4)

#1 @SergeyBiryukov
9 years ago

  • Milestone Awaiting Review5.0

#2 @SergeyBiryukov
9 years ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status newclosed

In 42636:

Tests: Correct erroneous @covers and @use tags.

Props jipmoors.
Fixes #43203.

#3 @jorbin
8 years ago

  • Milestone 5.05.1
Note: See TracTickets for help on using tickets.