WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 8 months ago

#37261 new enhancement

Consider removing the `$start` argument from `WP_UnitTest_Generator_Sequence`

Reported by: Frank Klein Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.4
Component: Build/Test Tools Keywords:
Focuses: Cc:
PR Number:

Description

As a follow up to [35244] and [37299], I wonder whether the $start argument in WP_UnitTest_Generator_Sequence still makes sense.

Currently the class handles two things:

  • Global increments (via the static incrementor variable).
  • Local increments (via the $start argument).

So I'd propose to remove the $start argument. A different, simpler class could be used for local increments instead.

Change History (0)

Note: See TracTickets for help on using tickets.