[wp-trac] [WordPress Trac] #37261: Consider removing the `$start` argument from `WP_UnitTest_Generator_Sequence`
WordPress Trac
noreply at wordpress.org
Sun Jul 3 12:46:18 UTC 2016
#37261: Consider removing the `$start` argument from
`WP_UnitTest_Generator_Sequence`
------------------------------+-----------------------------
Reporter: Frank Klein | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version: 4.4
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37261>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list