Make WordPress Core

Opened 8 years ago

Last modified 5 years ago

#37261 new enhancement

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

Reported by: frank-klein's profile Frank Klein Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.4
Component: Build/Test Tools Keywords:
Focuses: Cc:

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.